{% import '_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(row.account, last_segment=True) }} | {% for currency in operating_currencies %}{% if currency in row.balances %} {{ row.balances[currency]|format_currency }} {% endif %} {% if currency in row.balances_children %} {{ row.balances_children[currency]|format_currency }} {% endif %} | {% endfor %} {% if show_other_column %}{% 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 %} | {% endif %}
{% for currency in operating_currencies %} | {{ table_data[0]['balances_children'][currency]|format_currency }} | {% endfor %} {% if show_other_column %}
{% 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 %} |
{% endif %}