From 7844b79274b7f6cc7beb20e66383d07e03cdfaeb Mon Sep 17 00:00:00 2001
From: Bibin <17405044+bibinqcs@users.noreply.github.com>
Date: Mon, 15 Oct 2018 16:55:26 +0400
Subject: [PATCH] [Bug-Fix] accounts_receivable.html (#15688)
* Update accounts_receivable.html
In the print format and PDF the total was showing as 0 (Zero) , when I made these changes it fixed the issue
* Update accounts_receivable.html
---
.../accounts_receivable/accounts_receivable.html | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.html b/erpnext/accounts/report/accounts_receivable/accounts_receivable.html
index 0a21181399..7f663d8ded 100644
--- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.html
+++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.html
@@ -167,7 +167,7 @@
{%= format_currency(data[i]["paid_amount"], data[i]["currency"]) %} |
- {%= report.report_name === "Accounts Receivable" ? format_currency(data[i]["credit_note"], data[i]["currency"]) : format_currency(data[i]["Debit Note"], data[i]["currency"]) %} |
+ {%= report.report_name === "Accounts Receivable" ? format_currency(data[i]["credit_note"], data[i]["currency"]) : format_currency(data[i]["debit_note"], data[i]["currency"]) %}
{% } %}
{%= format_currency(data[i]["outstanding_amount"], data[i]["currency"]) %} |
@@ -189,15 +189,15 @@
{% } %}
{%= __("Total") %} |
- {%= format_currency(data[i]["Invoiced Amount"], data[i]["currency"] ) %} |
+ {%= format_currency(data[i]["invoiced_amount"], data[i]["currency"] ) %}
{% if(!filters.show_pdc_in_print) { %}
- {%= format_currency(data[i]["Paid Amount"], data[i]["currency"]) %} |
- {%= report.report_name === "Accounts Receivable" ? format_currency(data[i]["Credit Note"], data[i]["currency"]) : format_currency(data[i]["Debit Note"], data[i]["currency"]) %} |
+ {%= format_currency(data[i]["paid_amount"], data[i]["currency"]) %}
+ {%= report.report_name === "Accounts Receivable" ? format_currency(data[i]["credit_note"], data[i]["currency"]) : format_currency(data[i]["Debit Note"], data[i]["currency"]) %} |
{% } %}
- {%= format_currency(data[i]["Outstanding Amount"], data[i]["currency"]) %} |
+ {%= format_currency(data[i]["outstanding_amount"], data[i]["currency"]) %}
{% if(filters.show_pdc_in_print) { %}
{% if(report.report_name === "Accounts Receivable") { %}
@@ -238,4 +238,4 @@
{% } %}
-{{ __("Printed On ") }}{%= dateutil.str_to_user(dateutil.get_datetime_as_string()) %}
\ No newline at end of file
+{{ __("Printed On ") }}{%= dateutil.str_to_user(dateutil.get_datetime_as_string()) %}