{% import 'macros/_account_macros.html' as account_macros with context %} {% if table_title %}
| Account Expand all | {% for currency in operating_currencies %}{{ currency }} | {% endfor %} {% if show_other_column %}Other | {% endif %}
|---|---|---|
| {{ account_macros.account_name(account.account, last_segment=True) }} | {% for currency in operating_currencies %}{% if currency in account.balance %} {{ account.balance[currency]|format_currency(currency) }} {% endif %} {% if currency in account.balance_children %} {{ account.balance_children[currency]|format_currency(currency) }} {% endif %} | {% endfor %} {% if show_other_column %}{% for currency in options['commodities'] %} {% if currency not in operating_currencies %} {% if currency in account.balance %} {{ account.balance[currency]|format_currency(currency) }} {{ currency }} {% endif %} {% if currency in account.balance_children %} {{ account.balance_children[currency]|format_currency(currency) }} {{ currency }} {% endif %} {% endif %} {% endfor %} | {% endif %}
| {% for currency in operating_currencies %} | {{ real_accounts[0].balance_children[currency]|format_currency(currency) }} | {% endfor %} {% if show_other_column %}
{% for currency in options['commodities'] %}
{% if currency not in operating_currencies and real_accounts[0].balance_children[currency] %}
{{ real_accounts[0].balance_children[currency]|format_currency(currency) }} {{ currency }} {% endif %} {% endfor %} |
{% endif %}