Display owner in job order list

This commit is contained in:
Kendrick Chan 2018-02-04 19:41:46 +08:00
parent 2ee41da273
commit 1d0aaa211a
2 changed files with 7 additions and 0 deletions

View file

@ -257,6 +257,8 @@ class JobOrderController extends BaseController
$row['status'] = $statuses[$orow->getStatus()];
$row['flag_advance'] = $orow->isAdvanceOrder();
$row['owner'] = $orow->getProcessedBy()->getFullName();
// add crud urls
$row['meta']['update_url'] = $this->generateUrl($tier_params['edit_route'], ['id' => $row['id']]);

View file

@ -238,6 +238,11 @@ class User implements AdvancedUserInterface, Serializable
return $this->last_name;
}
public function getFullName()
{
return $this->first_name . ' ' . $this->last_name;
}
public function setContactNumber($num)
{
$this->contact_num = $num;