From 120348df4d696822097bb3a3d595c785812b2adf Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 5 Mar 2024 17:07:51 -0500 Subject: [PATCH] Add _amount --- invoices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoices.php b/invoices.php index 4420581c..92a4a255 100644 --- a/invoices.php +++ b/invoices.php @@ -56,7 +56,7 @@ $sql_total_overdue_amount = mysqli_query($mysqli, "SELECT SUM(invoice_amount) AS $row = mysqli_fetch_array($sql_total_overdue_amount); $total_overdue_amount = floatval($row['total_overdue_amount']); -$real_overdue_amount = $total_overdue - $total_overdue_partial; +$real_overdue_amount = $total_overdue_amount - $total_overdue_partial_amount; $total_unpaid_amount = $total_sent_amount + $total_viewed_amount + $total_partial_amount; $unpaid_count = $sent_count + $viewed_count + $partial_count;