{% set entry_hash = request.args.get('entry_hash') %} {% set entry, balances, slice, sha256sum = ledger.context(entry_hash) %}

{{ _('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 %}