Add dispatch timer to list of all JOs view #768 #1695

Merged
arcticzero merged 2 commits from 768-add-timer-in-jo-list-to-show-real-time-dispatch-time into 746-resq-2-0-final 2023-11-08 22:17:01 +00:00
2 changed files with 86 additions and 78 deletions
Showing only changes of commit e070d6df18 - Show all commits

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,