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:
johnnyq
2026-11-21 01:15:09 -05:00
parent 8b332846b4
commit 14990ac931
6 changed files with 12 additions and 11 deletions

View File

@@ -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']))];