{% load i18n %} {% load django_ledger %} {% if style == 'detail' %}
| {% trans 'Timestamp' %} | {% trans 'Account' %} | {% trans 'Account Name' %} | {% trans 'Unit' %} | {% trans 'Credit' %} | {% trans 'Debit' %} | {% trans 'Description' %} |
|---|---|---|---|---|---|---|
| {{ transaction_model.timestamp | date }} | {{ transaction_model.account_code }} | {{ transaction_model.account_name }} | {% if transaction_model.entity_unit_name %} {{ transaction_model.entity_unit_name }} {% endif %} | {% if transaction_model.is_credit %} {% currency_symbol %}{{ transaction_model.amount | currency_format }} {% endif %} | {% if transaction_model.is_debit %} {% currency_symbol %}{{ transaction_model.amount | currency_format }} {% endif %} | {{ transaction_model.description | default:"" }} |
| {% trans 'Total' %} | {% currency_symbol %}{{ total_credits | currency_format }} | {% currency_symbol %}{{ total_debits | currency_format }} | ||||
| {% trans 'Account' %} | {% trans 'Account Name' %} | {% trans 'Credit' %} | {% trans 'Debit' %} | {% trans 'Description' %} |
|---|---|---|---|---|
| {{ transaction_model.account_code }} | {{ transaction_model.account_name }} | {% if transaction_model.is_credit %} {% currency_symbol %}{{ transaction_model.amount | currency_format }} {% endif %} | {% if transaction_model.is_debit %} {% currency_symbol %}{{ transaction_model.amount | currency_format }} {% endif %} | {{ transaction_model.description | default:"" }} |
| {% trans 'Total' %} | {% currency_symbol %}{{ total_credits | currency_format }} | {% currency_symbol %}{{ total_debits | currency_format }} | ||