From b850d913a03147d170c6191304027704bf107c75 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 19 Feb 2022 00:14:52 -0500 Subject: [PATCH] Fixed Balanced and total amount paid in client listing --- clients.php | 2 +- get_settings.php | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/clients.php b/clients.php index a25b6bf7..3e34b820 100644 --- a/clients.php +++ b/clients.php @@ -227,7 +227,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); $sql_amount_paid = mysqli_query($mysqli,"SELECT SUM(payment_amount) AS amount_paid FROM payments, invoices WHERE payment_invoice_id = invoice_id AND invoice_client_id = $client_id"); $row = mysqli_fetch_array($sql_amount_paid); - $smount_paid = $row['amount_paid']; + $amount_paid = $row['amount_paid']; $balance = $invoice_amounts - $amount_paid; //set Text color on balance diff --git a/get_settings.php b/get_settings.php index 2f5bf8d8..379df69a 100644 --- a/get_settings.php +++ b/get_settings.php @@ -881,9 +881,11 @@ $asset_types_array = array( ); $software_types_array = array( - 'Operating System', - 'Web App', - 'Desktop App', + 'SaaS', + 'Application', + 'Mobile', + 'System Software', + 'Operating System', 'Other' );