Fixed Balanced and total amount paid in client listing
This commit is contained in:
+1
-1
@@ -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");
|
$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);
|
$row = mysqli_fetch_array($sql_amount_paid);
|
||||||
|
|
||||||
$smount_paid = $row['amount_paid'];
|
$amount_paid = $row['amount_paid'];
|
||||||
|
|
||||||
$balance = $invoice_amounts - $amount_paid;
|
$balance = $invoice_amounts - $amount_paid;
|
||||||
//set Text color on balance
|
//set Text color on balance
|
||||||
|
|||||||
+5
-3
@@ -881,9 +881,11 @@ $asset_types_array = array(
|
|||||||
);
|
);
|
||||||
|
|
||||||
$software_types_array = array(
|
$software_types_array = array(
|
||||||
'Operating System',
|
'SaaS',
|
||||||
'Web App',
|
'Application',
|
||||||
'Desktop App',
|
'Mobile',
|
||||||
|
'System Software',
|
||||||
|
'Operating System',
|
||||||
'Other'
|
'Other'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user