{% if e.reference %}
{{ e.reference.short }}
{% else %}
{{ e.short_id }}
{% endif %}
{% for a in e.assets %}{{ a.moved.text }} {% endfor %}moved
{% if e.reference %}
{% for a in e.assets %}
{{ e.short_id }}{% endif %}
{% if e.value_date %}value {{ e.value_date }}{% endif %}
{% if e.book %}book {{ e.book }}{% endif %}
{% for m in e.metadata %}{% endfor %}
{{ e.time }}
{{ a.code }}
{% if not a.balanced %}unbalanced{% endif %}
Debit
{% for l in a.debits %}{{ self::line(l=l) }}{% endfor %}
{% if not a.debits %}nothing consumed
{% endif %}
Σ
{{ a.debit_total.text }}
Credit
{% for l in a.credits %}{{ self::line(l=l) }}{% endfor %}
{% if not a.credits %}nothing created
{% endif %}
Σ
{{ a.credit_total.text }}