From 1455e20fad52e088b39b70bfb85b4b1b6c147f29 Mon Sep 17 00:00:00 2001 From: Andrew Malsbury Date: Sat, 7 Oct 2023 18:05:21 +0000 Subject: [PATCH] Added Total Equities and Liabilities --- report_balance_sheet.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/report_balance_sheet.php b/report_balance_sheet.php index 1495d79a..b048c7ca 100644 --- a/report_balance_sheet.php +++ b/report_balance_sheet.php @@ -26,6 +26,7 @@ $result_accounts = mysqli_query($mysqli, $sql_accounts); $total_assets = 0; $total_liabilities = 0; $total_equity = 0; +$currency = $session_company_currency; ?>
@@ -107,7 +108,7 @@ $total_equity = 0; mysqli_data_seek($result_accounts, 0); // Reset the result pointer to the start while ($row = mysqli_fetch_array($result_accounts)) { $balance = $row['opening_balance'] + $row['total_payments'] + $row['total_revenues'] - $row['total_expenses']; - $account_type = $row['account_type']; + $account_type = $row['account_type']; if ($account_type >= 30) { // Display equity account row echoAccountRow($row, $balance); @@ -121,6 +122,18 @@ $total_equity = 0; Total Equity + + + + + + + Total Liabilities and Equity + +