{% import 'macros/_account_macros.html' as account_macros with context %} {% if table_title %}
{{ _('Account') }} {% for currency in operating_currencies %} {{ currency }} {% endfor %} {% if show_other_column %}{{ _('Other') }}{% endif %}
{% if account.children %}{% endif %} {{ account_macros.account_name(account.account, last_segment=True) }} {% 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 %}
{% 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 %}