diff --git a/erpnext/accounts/print_format/bank_and_cash_payment_voucher/bank_and_cash_payment_voucher.html b/erpnext/accounts/print_format/bank_and_cash_payment_voucher/bank_and_cash_payment_voucher.html
index 2eadb2a92ac..06f77b0f1da 100644
--- a/erpnext/accounts/print_format/bank_and_cash_payment_voucher/bank_and_cash_payment_voucher.html
+++ b/erpnext/accounts/print_format/bank_and_cash_payment_voucher/bank_and_cash_payment_voucher.html
@@ -30,10 +30,29 @@
{%- 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 }} |
@@ -22,7 +20,7 @@
-
+
| Account |
@@ -30,10 +28,26 @@
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 |
- {% set total_credit = 0 -%}
{% for entries in doc.gl_entries %}
{% if entries.debit == 0.0 %}
@@ -41,36 +55,16 @@
| {{ entries.party_type }} |
{{ entries.party }} |
{{ entries.credit }} |
- {% set total_credit = total_credit + entries.credit -%}
-
-
- | Total (credit) |
- {{total_credit}} |
{% endif %}
{% endfor %}
- | |
+ Total (credit) |
+ {{ doc.gl_entries | sum(attribute='credit') }} |
- | Debit |
+ Narration: {{ doc.gl_entries[0].remarks }} |
- {% set total_debit = 0 -%}
- {% for entries in doc.gl_entries %}
- {% if entries.credit == 0.0 %}
-
- | {{ entries.account }} |
- {{ entries.party_type }} |
- {{ entries.party }} |
- {% set total_debit = total_debit + entries.debit -%}
- {{ entries.debit }} |
-
-
- | Total (debit) |
- {{total_debit}} |
-
- {% endif %}
- {% endfor %}
\ No newline at end of file
diff --git a/erpnext/accounts/print_format/purchase_auditing_voucher/purchase_auditing_voucher.html b/erpnext/accounts/print_format/purchase_auditing_voucher/purchase_auditing_voucher.html
index 35852e1e1c8..342ce22b3a7 100644
--- a/erpnext/accounts/print_format/purchase_auditing_voucher/purchase_auditing_voucher.html
+++ b/erpnext/accounts/print_format/purchase_auditing_voucher/purchase_auditing_voucher.html
@@ -60,10 +60,16 @@
| Tax and Charges: | {{doc.taxes_and_charges}} |
{% for tax in doc.taxes %}
- | {{ tax.account_head }}: | {{ tax.tax_amount_after_discount_amount }} |
+ {% if tax.tax_amount_after_discount_amount!= 0 %}
+ | {{ tax.account_head }}: | {{ tax.tax_amount_after_discount_amount }} |
+
{% endfor %}
+ {% if doc.taxes_and_charges_added!= 0 %}
| Taxes and Charges Added: | {{ doc.taxes_and_charges_added }} |
+ {% endif %}
+ {% if doc.taxes_and_charges_deducted!= 0 %}
| Taxes and Charges Deducted: | {{ doc.taxes_and_charges_deducted }} |
+ {% endif %}
| Total Taxes and Charges: | {{ doc.total_taxes_and_charges }} |
| Net Payable: | {{ doc.grand_total }} |
@@ -76,8 +82,8 @@
Account |
Party Type |
Party |
-
Credit Amount |
Debit Amount |
+
Credit Amount |
{% for entries in doc.gl_entries %}
@@ -85,8 +91,8 @@
| {{ entries.account }} |
{{ entries.party_type }} |
{{ entries.party }} |
- {{ entries.credit }} |
{{ entries.debit }} |
+ {{ entries.credit }} |
{% endfor %}
diff --git a/erpnext/accounts/print_format/sales_auditing_voucher/sales_auditing_voucher.html b/erpnext/accounts/print_format/sales_auditing_voucher/sales_auditing_voucher.html
index 04de83de708..4dc4b8a4a92 100644
--- a/erpnext/accounts/print_format/sales_auditing_voucher/sales_auditing_voucher.html
+++ b/erpnext/accounts/print_format/sales_auditing_voucher/sales_auditing_voucher.html
@@ -56,7 +56,9 @@
| Tax and Charges: | {{doc.taxes_and_charges}} |
{% for tax in doc.taxes %}
- | {{ tax.account_head }}: | {{ tax.tax_amount_after_discount_amount }} |
+ {% if tax.tax_amount_after_discount_amount!= 0 %}
+ | {{ tax.account_head }}: | {{ tax.tax_amount_after_discount_amount }} |
+ {% endif %}
{% endfor %}
| Total Taxes and Charges: | {{ doc.total_taxes_and_charges }} |
| Net Payable: | {{ doc.grand_total }} |
@@ -70,8 +72,8 @@
Account |
Party Type |
Party |
- Credit Amount |
Debit Amount |
+ Credit Amount |
{% for entries in doc.gl_entries %}
@@ -79,8 +81,8 @@
| {{ entries.account }} |
{{ entries.party_type }} |
{{ entries.party }} |
- {{ entries.credit }} |
{{ entries.debit }} |
+ {{ entries.credit }} |
{% endfor %}