Added Products CRUD and new DB dump to include products

This commit is contained in:
root
2019-04-08 00:26:49 -04:00
parent 2b7bdee81e
commit 40c08a1635
10 changed files with 285 additions and 4 deletions

View File

@@ -30,7 +30,7 @@
<tr>
<td><?php echo $account_name; ?></a></td>
<?php
$sql2 = mysqli_query($mysqli,"SELECT SUM(invoice_payment_amount) AS total_payments FROM invoice_payments WHERE account_id = $account_id");
$sql2 = mysqli_query($mysqli,"SELECT SUM(payment_amount) AS total_payments FROM payments WHERE account_id = $account_id");
$row2 = mysqli_fetch_array($sql2);
$sql3 = mysqli_query($mysqli,"SELECT SUM(expense_amount) AS total_expenses FROM expenses WHERE account_id = $account_id");