{%- if not doc.get("print_heading") and not doc.get("select_print_heading")
and doc.set("select_print_heading", _("Journal Entry")) -%}{%- endif -%}
{{ add_header(0, 1, doc, letter_head, no_letterhead, print_settings) }}
Voucher No: | {{ doc.name }} |
Date: | {{ frappe.utils.formatdate(doc.creation) }} |
Account |
Party Type |
Party |
Amount |
Debit |
{% for entries in doc.gl_entries %}
{% if entries.credit == 0.0 %}
{{ entries.account }} |
{{ entries.party_type }} |
{{ entries.party }} |
{{ entries.debit }} |
{% endif %}
{% endfor %}
Total (debit) |
{{ doc.gl_entries | sum(attribute='debit') }} |
Credit |
{% for entries in doc.gl_entries %}
{% if entries.debit == 0.0 %}
{{ entries.account }} |
{{ entries.party_type }} |
{{ entries.party }} |
{{ entries.credit }} |
{% endif %}
{% endfor %}
Total (credit) |
{{ doc.gl_entries | sum(attribute='credit') }} |
Narration: {{ doc.gl_entries[0].remarks }} |