{% load i18n %}{% spaceless %}

{% trans "Transaction" %}: {{ object.text }}

{% if object.draft %} {% endif %} {% for obj in object.items.all %} {% if obj.draft %} {% else %} {% endif %} {% endfor %}
{% trans "Date" %} {% trans "Account" %} {% trans "Debit" %} {% trans "Credit" %}
{{ object.balance_debit }} {{ object.balance_credit }}
{% if obj.draft %} {% else %} {% endif %} {{ obj.date|date:"SHORT_DATE_FORMAT" }} {{ obj.account }} {% if not obj.credit %}{{ obj.amount }}{% endif %} {% if obj.credit %}{{ obj.amount }}{% endif %}
{% endspaceless %}