mirror of https://github.com/itflow-org/itflow
Fixed Balanced and total amount paid in client listing
This commit is contained in:
parent
acf74b13bc
commit
b850d913a0
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue