Add service type to View All page. Replace Battery Facilitated By to Assigned Hub in View All Page. #769
This commit is contained in:
parent
b20371cd1f
commit
8ed1434353
2 changed files with 12 additions and 4 deletions
|
|
@ -241,12 +241,20 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
||||||
else
|
else
|
||||||
$row['assignor'] = $orow->getAssignedBy()->getFullName();
|
$row['assignor'] = $orow->getAssignedBy()->getFullName();
|
||||||
|
|
||||||
|
// not removing this since this might be used by other pages since getRows is also used by other pages
|
||||||
$hub_facilitated = $orow->getFacilitatedBy();
|
$hub_facilitated = $orow->getFacilitatedBy();
|
||||||
if ($hub_facilitated == null)
|
if ($hub_facilitated == null)
|
||||||
$row['hub_facilitated'] = '';
|
$row['hub_facilitated'] = '';
|
||||||
else
|
else
|
||||||
$row['hub_facilitated'] = $orow->getFacilitatedBy()->getName();
|
$row['hub_facilitated'] = $orow->getFacilitatedBy()->getName();
|
||||||
|
|
||||||
|
// get the assigned hub, if any
|
||||||
|
$assigned_hub = $orow->getHub();
|
||||||
|
if ($assigned_hub == null)
|
||||||
|
$row['assigned_hub'] = '';
|
||||||
|
else
|
||||||
|
$row['assigned_hub'] = $orow->getHub()->getName();
|
||||||
|
|
||||||
$rows[] = $row;
|
$rows[] = $row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,12 +117,12 @@
|
||||||
title: 'Customer Area'
|
title: 'Customer Area'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'hub_facilitated',
|
field: 'assigned_hub',
|
||||||
title: 'Battery Facilitated By'
|
title: 'Assigned Hub'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'type',
|
field: 'service_type',
|
||||||
title: 'Schedule'
|
title: 'Transaction Type'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'date_schedule',
|
field: 'date_schedule',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue