{% import '_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 row in table_data %} {% with account_level = row.account|account_level %} {% for currency in operating_currencies %} {% endfor %} {% if show_other_column %} {% endif %} {% endwith %} {% endfor %} {% if totals %} {% for currency in operating_currencies %} {% endfor %} {% if show_other_column %} {% endif %} {% endif %}
Account Expand all{{ currency }}Other
{% if currency in row.balances %} {{ row.balances[currency]|format_currency }} {% endif %} {% if currency in row.balances_children %} {{ row.balances_children[currency]|format_currency }} {% endif %} {% for currency in options['commodities'] %} {% if currency not in operating_currencies %} {% if currency in row.balances %} {{ row.balances[currency]|format_currency }} {{ currency }} {% endif %} {% if currency in row.balances_children %} {{ row.balances_children[currency]|format_currency }} {{ currency }} {% endif %} {% endif %} {% endfor %}
 {{ table_data[0]['balances_children'][currency]|format_currency }} {% for currency in options['commodities'] %} {% if currency not in operating_currencies and table_data[0]['balances_children'][currency] %} {{ table_data[0]['balances_children'][currency]|format_currency }} {{ currency }}
{% endif %} {% endfor %}