Merge branch '746-resq-2-0-final' into 768-add-timer-in-jo-list-to-show-real-time-dispatch-time

# Conflicts:
#	templates/job-order/list.all.html.twig
This commit is contained in:
Ramon Gutierrez 2023-11-09 06:16:24 +08:00
commit e070d6df18
2 changed files with 86 additions and 78 deletions

View file

@ -243,12 +243,20 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
else
$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();
if ($hub_facilitated == null)
$row['hub_facilitated'] = '';
else
$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;
}

View file

@ -130,12 +130,12 @@
title: 'Customer Area'
},
{
field: 'hub_facilitated',
title: 'Battery Facilitated By'
field: 'assigned_hub',
title: 'Assigned Hub'
},
{
field: 'type',
title: 'Schedule'
field: 'service_type',
title: 'Transaction Type'
},
{
field: 'date_schedule',
@ -183,7 +183,7 @@
}
return dateEnd ? '<span class="m-badge m-badge--wide m--font-boldest ' + (incrementing ? 'm-badge--warning" data-incrementing="1"' : 'm-badge--success"') + '>' + timeDiff(dateAssign, dateEnd) + '</span>' : '-';
}
},
},
{
field: 'Actions',
@ -197,7 +197,7 @@
return actions;
},
}
},
],
search: {
onEnter: false,