{% extends "base.html" %} {% from "_macros.html" import report_filters, indent, level_select with context %} {% block title %}{{ t('Trial Balance') }}{% endblock %} {% block content %} {% set cur = data.currency %}

{{ t('Trial Balance') }}

{{ data.branches|map(attribute='code')|join(', ') }}
{% set extra %}{{ level_select(f.level, f.levels) }}{% endset %} {{ report_filters(f, True, extra) }}
{{ f.date_from }} → {{ f.date_to }}{{ t('Amounts in') }} {{ cur }}
{% for r in data.rows %} {% if r.group %}{{ nm(r.group) }}{% else %}{{ nm(r.account) }}{% endif %} {% else %}{% endfor %} {% for v in totals %}{% endfor %}
{{ t('Code') }}{{ t('Account') }}{{ t('Opening') }}{{ t('Debit') }} {{ t('Credit') }}{{ t('Closing') }}
{{ (r.account or r.group).code }} {{ r.opening|money(cur) }}{{ r.debit|money(cur, true) }} {{ r.credit|money(cur, true) }}{{ r.closing|money(cur) }}
{{ t('Nothing yet.') }}
{{ t('Total') }}{{ v|money(cur) }}
{{ t('Positive balances are debits, negative balances are credits.') }} {% for n in data.notes %}
{{ n }}
{% endfor %}
{% endblock %}