{% import 'macros/_account_macros.html' as account_macros with context %} {% if table_title %}

{{ table_title }}

{% endif %} {% set show_other_column = (operating_currencies|sort != options['commodities']|list|sort) %} {% for currency in operating_currencies %} {% endfor %} {% if show_other_column %}{% endif %} {% for account in real_accounts recursive %} {% if account|show_account %} {% with account_level = loop.depth %} {% for currency in operating_currencies %} {% endfor %} {% if show_other_column %} {% endif %} {% endwith %} {{ loop(account.children) }} {% endif %} {% endfor %} {% if totals %} {% for currency in operating_currencies %} {% endfor %} {% if show_other_column %} {% endif %} {% endif %}
Account Expand all{{ currency }}Other
{% 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 %} {% 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 %}
 {{ real_accounts[0].balance_children[currency]|format_currency(currency) }} {% 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 %}