{% extends "_layout.html" %} {% set active_page = 'trial_balance' %} {% import 'macros/_account_macros.html' as account_macros with context %} {% import 'macros/_interval_macros.html' as interval_macros with context %} {% import "_charts.html" as charts with context %} {% set page_title = account_macros.account_name_header(account_name) %} {% set short_title = account_name %} {% block content %}
{{ _('Account') }} {% for begin_date, end_date in dates|reverse %} {% if accumulate %} {% set time_filter = dates[0][0]|string + ' - ' + end_date|string %} {% else %} {% set time_filter = begin_date|string + ' - ' + end_date|string %} {% endif %} {{ interval_macros.format_date(begin_date) }} {% endfor %}
{% if account.children %}{% endif %} {{ account_macros.account_name(account.account, last_segment=True) }} {% for balance, balance_children, budget, budget_children in account.balance_and_balance_children|reverse %} {% set begin_date, end_date = dates[::-1][loop.index0] %} {% if accumulate %}{% set begin_date = dates[0][0] %}{% endif %} {% for currency, number in balance.items() %} {{ account_macros.balance_with_budget(currency, number, budget, show_currency=True) }} {% endfor %} {% for currency, number in balance_children.items() %} {{ account_macros.balance_with_budget(currency, number, budget_children, show_currency=True, css_class="balance-children") }} {% endfor %} {% endfor %}
{% for _, balance_children, _, _ in interval_balances.balance_and_balance_children|reverse %}
{% for currency, number in balance_children.items() %}
{% if number %}
{{ number|format_currency(currency) }} {{ currency }}
{% endif %}
{% endfor %}
{% endfor %}