{% load static %}
| Voucher No: {{ txn.voucher_no }} | Date: {{ txn.voucher_date }} | Reference: {{ txn.reference_no|default:"—" }} |
| Party: {{ txn.party.name|default:"—" }} | Cash/Bank: {{ txn.cash_bank_account.account_name|default:"—" }} | Amount: {{ txn.total_amount|floatformat:2 }} |
| Narration: {{ txn.description|default:"—" }} | ||
| Account | Party | Narration | Debit | Credit |
|---|---|---|---|---|
| {{ line.account.code }} — {{ line.account.name }} | {{ line.party.name|default:"—" }} | {{ line.narration }} | {% if line.debit %}{{ line.debit|floatformat:2 }}{% endif %} | {% if line.credit %}{{ line.credit|floatformat:2 }}{% endif %} |
| Total | {{ txn.total_amount|floatformat:2 }} | {{ txn.total_amount|floatformat:2 }} | ||