From d3b446706b31d8e3d826d78a6af52be2ddf662bc Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 21 Jun 2023 15:26:16 -0400 Subject: [PATCH] Modified Report Client with a Balance to Sort Highest Balance First --- report_clients_with_balance.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/report_clients_with_balance.php b/report_clients_with_balance.php index a8f40dae..3a389831 100644 --- a/report_clients_with_balance.php +++ b/report_clients_with_balance.php @@ -15,9 +15,13 @@ validateAccountantRole();
@@ -45,10 +51,7 @@ validateAccountantRole(); while ($row = mysqli_fetch_array($sql_clients)) { $client_id = intval($row['client_id']); $client_name = nullable_htmlentities($row['client_name']); - $invoice_amounts = floatval($row['invoice_amounts']); - $amount_paid = floatval($row['amount_paid']); - - $balance = $invoice_amounts - $amount_paid; + $balance = floatval($row['balance']); ?>