Merge branch 'master' of gitlab.com:jankstudio/resq

This commit is contained in:
Ramon Gutierrez 2018-02-04 19:47:15 +08:00
commit 83518679ea
3 changed files with 10 additions and 3 deletions

View file

@ -257,6 +257,8 @@ class JobOrderController extends BaseController
$row['status'] = $statuses[$orow->getStatus()];
$row['flag_advance'] = $orow->isAdvanceOrder();
$row['processor'] = $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;

View file

@ -94,8 +94,8 @@
title: 'Status'
},
{
field: 'owner',
title: 'Owner'
field: 'processor',
title: 'Processor'
},
{
field: 'Actions',
@ -122,4 +122,4 @@
});
</script>
{% endblock %}
{% endblock %}