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

{{ table_title }}

{% endif %} {% set show_other_column = (operating_currencies|sort != api.options['commodities']|list|sort) %}
  1. {% for currency in operating_currencies %} {{ currency }} {% endfor %} {% if show_other_column %}{{ _('Other') }}{% endif %}

  2. {% for account in real_accounts recursive %} {% if account|show_account %}
  3. {% for currency in operating_currencies %} {% if currency in account.balance %} {{ account_macros.balance_with_budget(currency, account.balance[currency], account.budget) }} {% endif %} {% if currency in account.balance_children %} {{ account_macros.balance_with_budget(currency, account.balance_children[currency], account.budget_children, css_class="balance-children") }} {% endif %} {% endfor %} {% if show_other_column %} {% for currency in api.options['commodities'] if currency not in operating_currencies %} {% if currency in account.balance %} {{ account_macros.balance_with_budget(currency, account.balance[currency], account.budget, show_currency=True) }} {% endif %} {% if currency in account.balance_children %} {{ account_macros.balance_with_budget(currency, account.balance_children[currency], account.budget_children, show_currency=True, css_class="balance-children") }} {% endif %} {% endfor %} {% endif %}

      {{ loop(account.children) }}
  4. {% endif %} {% endfor %} {% if totals %}
  5. {% for currency in operating_currencies %} {{ real_accounts[0].balance_children[currency]|format_currency(currency) }} {% endfor %} {% if show_other_column %} {% for currency in api.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 %}

  6. {% endif %}