{% load i18n %} {% load django_ledger %} {% if style == 'detail' %}
{% for tx in txs %} {% endfor %}
{% trans 'Timestamp' %} {% trans 'Account' %} {% trans 'Account Name' %} {% trans 'Unit' %} {% trans 'Credit' %} {% trans 'Debit' %} {% trans 'Description' %}
{{ tx.journal_entry.timestamp }} {{ tx.account.code }} {{ tx.account.name }} {% if tx.journal_entry.entity_unit %}{{ tx.journal_entry.entity_unit.name }}{% endif %} {% if tx.tx_type == 'credit' %}${{ tx.amount | currency_format }}{% endif %} {% if tx.tx_type == 'debit' %}${{ tx.amount | currency_format }}{% endif %} {% if tx.description %}{{ tx.description }}{% endif %}
Total {% currency_symbol %}{{ total_credits | currency_format }} {% currency_symbol %}{{ total_debits | currency_format }}
{% elif style == 'compact' %}
{% for tx in txs %} {% endfor %}
{% trans 'Account' %} {% trans 'Account Name' %} {% trans 'Credit' %} {% trans 'Debit' %} {% trans 'Description' %}
{{ tx.account.code }} {{ tx.account.name }} {% if tx.tx_type == 'credit' %}${{ tx.amount | currency_format }}{% endif %} {% if tx.tx_type == 'debit' %}${{ tx.amount | currency_format }}{% endif %} {% if tx.description %}{{ tx.description }}{% endif %}
{% trans 'Total' %} {% currency_symbol %}{{ total_credits | currency_format }} {% currency_symbol %}{{ total_debits | currency_format }}
{% endif %}