diff --git a/agent/reports/client_ticket_time_detail.php b/agent/reports/client_ticket_time_detail.php index b84f3402..bfafacf4 100644 --- a/agent/reports/client_ticket_time_detail.php +++ b/agent/reports/client_ticket_time_detail.php @@ -16,16 +16,13 @@ function secondsToHmsString($seconds) { } /** - * 15-minute round up, return decimal hours in 0.25 increments - * NOTE: In this report, billed hours are calculated per TICKET total - * (sum of reply time within range, then rounded up to nearest 15 minutes). + * Convert seconds to true decimal hours (rounded to 2 decimals). */ -function secondsToQuarterHourDecimal($seconds) { +function secondsToDecimalHours($seconds) { $seconds = (int) max(0, $seconds); if ($seconds === 0) return 0.00; - $quarters = (int) ceil($seconds / 900); // 900 seconds = 15 minutes - return $quarters * 0.25; + return round($seconds / 3600, 2); } /** @@ -162,7 +159,7 @@ $result = $stmt->get_result();