= 2; $can_delete = lookupUserPermission('module_financial') >= 3; $show = ($_GET['show'] ?? '') === 'archived' ? 'archived' : ''; $open_accounts = accountsList(false); $archived_accounts = accountsList(true); $stats = accountsStats($open_accounts); $types = accountTypes(); $accounts = $show === 'archived' ? $archived_accounts : $open_accounts; $q_text = trim((string) ($_GET['q'] ?? '')); if ($q_text !== '') { $accounts = array_filter($accounts, function ($account) use ($q_text) { return mb_stripos($account['account_name'] . ' ' . $account['account_description'] . ' ' . $account['account_notes'], $q_text) !== false; }); } $cards = array_filter($open_accounts, function ($account) { return $account['type'] === 3; }); $owing_cards = array_filter($cards, function ($account) { return $account['balance'] < 0; }); $money = function ($amount, $currency = '') { return escapeHtml(billingMoney($amount, $currency)); }; $change = function ($now, $before) { if ($before <= 0) { return null; } return round(($now - $before) / $before * 100); }; $in_change = $change($stats['in'], $stats['last_in']); $out_change = $change($stats['out'], $stats['last_out']); $month_url = 'canned_date=custom&dtf=' . $stats['month_start'] . '&dtt=' . date('Y-m-t'); ?>
In the accounts
Across account
Owed on cards
In this month
% on the same days of Payments and other income, not transfers
Out this month
% on the same days of Expenses and reimbursements, not transfers

Accounts

$account) { $type = $types[$account['type']]; $card = $account['type'] === 3; $currency = $account['account_currency_code']; $balance = $account['balance']; $in_use = $account['line_count'] > 0; ?>
Account Kind Holds This month Latest
opened with
+
-
-
line
Nothing yet Reconciling To
What you have, less what is owed on cards