From c06c240e2a7770f5bed3336837f0ae70b3ca7b26 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sat, 8 Jun 2024 07:32:41 +0100 Subject: [PATCH] Bugfix: Ticket report - average time to close --- report_ticket_by_client.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/report_ticket_by_client.php b/report_ticket_by_client.php index 6f7879ad..2f0992a6 100644 --- a/report_ticket_by_client.php +++ b/report_ticket_by_client.php @@ -79,7 +79,7 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients Client Tickets raised Tickets closed - Time worked (H:M:S) + Total Time worked (H:M:S) Avg time to close @@ -119,6 +119,7 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients $total += ($closedTime->getTimestamp() - $openedTime->getTimestamp()); $count++; } + $avg_time_to_close = $total / $count; ?> @@ -127,7 +128,7 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients - +