added database download script

This commit is contained in:
root
2019-04-26 14:14:02 -04:00
parent abe693207d
commit 65e9884d46
4 changed files with 78 additions and 2 deletions

View File

@@ -36,6 +36,7 @@
}
$client_email = $row['client_email'];
$client_website = $row['client_website'];
$client_net_terms = $row['client_net_terms'];
//Add up all the payments for the invoice and get the total amount paid to the invoice
$sql_invoice_amounts = mysqli_query($mysqli,"SELECT SUM(invoice_amount) AS invoice_amounts FROM invoices WHERE client_id = $client_id AND invoice_status NOT LIKE 'Draft'");