{{ _('Location') }}: {{ entry.meta.filename }}:{{ entry.meta.lineno }}

{% if balances %}
{{ _('Context') }}
{% for account, inventory in balances[0].items() %} {% endfor %}
{{ _('Balances before entry') }}
{{ account }} {% for position in inventory %} {{ position.units|format_amount }} {% if not loop.last %}
{% endif %} {% endfor %}
{% for account, inventory in balances[1].items() %} {% endfor %}
{{ _('Balances after entry') }}
{{ account }} {% for position in inventory %} {{ position.units|format_amount }} {% if not loop.last %}
{% endif %} {% endfor %}
{% endif %}