Transfers now fully work and Fixed some math on the dashboard and new DB dump

This commit is contained in:
root
2019-04-08 01:17:45 -04:00
parent 40c08a1635
commit 04fa61421a
7 changed files with 51 additions and 28 deletions

View File

@@ -2,7 +2,7 @@
<?php
$sql = mysqli_query($mysqli,"SELECT * FROM transfers ORDER BY transfers.transfer_date DESC");
$sql = mysqli_query($mysqli,"SELECT * FROM transfers ORDER BY transfer_date DESC");
?>
@@ -33,7 +33,9 @@ $sql = mysqli_query($mysqli,"SELECT * FROM transfers ORDER BY transfers.transfer
$transfer_account_from = $row['transfer_account_from'];
$transfer_account_to = $row['transfer_account_to'];
$transfer_amount = $row['transfer_amount'];
$expense_id = $row['expense_id'];
$payment_id = $row['payment_id'];
$sql2 = mysqli_query($mysqli,"SELECT * FROM accounts WHERE account_id = $transfer_account_from");
$row = mysqli_fetch_array($sql2);
$account_name_from = $row['account_name'];