$account_id, 'name' => $row['account_name'], 'type' => $row['account_type_name'], 'balance' => $balance ]; } function display_account_section($mysqli, $accounts, $type) { foreach ($accounts[$type] as $account) { global $currency_format; global $currency_code; $currency_code = getAccountCurrencyCode($mysqli, $account['id']); echo "
| Total Assets | = numfmt_format_currency($currency_format, $total_assets, $currency_code); ?> | |
|---|---|---|
| Total Liabilities | = numfmt_format_currency($currency_format, $total_liabilities, $currency_code); ?> | |
| Total Equities | = numfmt_format_currency($currency_format, $total_equities, $currency_code); ?> |