mirror of
https://github.com/itflow-org/itflow
synced 2026-11-22 04:17:24 +00:00
QoL 54: booking lengths, dispatch board lengths and cron run times written 1h 30m like logged time, decimal hours written 12.5 h including project hours, and the client export minutes in the same form
This commit is contained in:
@@ -1232,7 +1232,7 @@ function clientExportPdf($client_id, $options) {
|
||||
$chapter('Service levels', 'Targets run in business hours.', 1);
|
||||
$minutes = function ($m) {
|
||||
$m = intval($m);
|
||||
return $m >= 60 ? round($m / 60, 1) . ' h' : $m . ' min';
|
||||
return $m >= 60 ? round($m / 60, 1) . ' h' : $m . 'm';
|
||||
};
|
||||
$write(clientExportPdfTable(['Priority' => 20, 'SLA' => 40, 'First reply within' => 20, 'Resolved within' => 20], array_map(function ($s) use ($e, $minutes) {
|
||||
return [$e($s['priority']), $e($s['sla']), $e($minutes($s['response_minutes'])), $e($minutes($s['resolution_minutes']))];
|
||||
|
||||
Reference in New Issue
Block a user