From d7e8e606935c7a1b2df5181c510eaa3877a7167c Mon Sep 17 00:00:00 2001 From: o-psi Date: Wed, 10 Jan 2024 22:40:51 +0000 Subject: [PATCH] Update message for no tickets. --- report_tickets_unbilled.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/report_tickets_unbilled.php b/report_tickets_unbilled.php index 2a7be427..c2952d5a 100644 --- a/report_tickets_unbilled.php +++ b/report_tickets_unbilled.php @@ -53,6 +53,9 @@ $sql_ticket_years = mysqli_query($mysqli, "SELECT DISTINCT YEAR(ticket_created_a $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients ORDER BY client_name ASC"); +$rows = 0; + + ?>
@@ -144,6 +147,8 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients $ticket_unbilled_count = intval($row['ticket_unbilled_count']); if ($ticket_unbilled_count > 0) { + $rows = $rows++; + ?> @@ -156,15 +161,14 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients - You are all caught up! - - - There are no unbilled tickets for this year. + You are all caught up! There are no unbilled tickets for this year. + +