diff --git a/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts_accounts_receivable.html b/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts_accounts_receivable.html index 8219b6ad990..9ca1d00817c 100644 --- a/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts_accounts_receivable.html +++ b/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts_accounts_receivable.html @@ -52,7 +52,7 @@ -{% if filters.show_future_payments == 1 %} +{% if(filters.show_future_payments)%} {% set balance_row = data[-1] %} {% set ns = namespace(idx=None) %} @@ -62,12 +62,12 @@ {% endif %} {% endfor %} - {% set range1 = report.columns[ns.idx].label %} - {% set range2 = report.columns[ns.idx+1].label %} - {% set range3 = report.columns[ns.idx+2].label %} - {% set range4 = report.columns[ns.idx+3].label %} - {% set range5 = report.columns[ns.idx+4].label %} - {% set range6 = report.columns[ns.idx+5].label %} + {% set age = report.columns[ns.idx].label %} + {% set range1 = report.columns[ns.idx+1].label %} + {% set range2 = report.columns[ns.idx+2].label %} + {% set range3 = report.columns[ns.idx+3].label %} + {% set range4 = report.columns[ns.idx+4].label %} + {% set range5 = report.columns[ns.idx+5].label %} {% if(balance_row) %} @@ -86,12 +86,12 @@ + - @@ -102,22 +102,22 @@ {{ frappe.utils.flt(balance_row["age"], 2) }} @@ -128,7 +128,7 @@ @@ -139,7 +139,7 @@ + {{ frappe.utils.fmt_money(frappe.utils.flt(balance_row["outstanding"] - balance_row["future_amount"]), currency=balance_row["currency"]) }}
{{ _(" ") }}{{ _(age) }} {{ _(range1) }} {{ _(range2) }} {{ _(range3) }} {{ _(range4) }} {{ _(range5) }}{{ _(range6) }} {{ _("Total") }}
- {{ frappe.utils.fmt_money(balance_row["range1"], currency=data[data|length-1]["currency"]) }} + {{ frappe.utils.fmt_money(balance_row["range1"], currency=balance_row["currency"]) }} - {{ frappe.utils.fmt_money(balance_row["range2"], currency=data[data|length-1]["currency"]) }} + {{ frappe.utils.fmt_money(balance_row["range2"], currency=balance_row["currency"]) }} - {{ frappe.utils.fmt_money(balance_row["range3"], currency=data[data|length-1]["currency"]) }} + {{ frappe.utils.fmt_money(balance_row["range3"], currency=balance_row["currency"]) }} - {{ frappe.utils.fmt_money(balance_row["range4"], currency=data[data|length-1]["currency"]) }} + {{ frappe.utils.fmt_money(balance_row["range4"], currency=balance_row["currency"]) }} - {{ frappe.utils.fmt_money(balance_row["range5"], currency=data[data|length-1]["currency"]) }} + {{ frappe.utils.fmt_money(balance_row["range5"], currency=balance_row["currency"]) }} - {{ frappe.utils.fmt_money(frappe.utils.flt(balance_row["outstanding"]), currency=data[data|length-1]["currency"]) }} + {{ frappe.utils.fmt_money(frappe.utils.flt(balance_row["outstanding"]), currency=balance_row["currency"]) }}
{{ _("Future Payments") }} - {{ frappe.utils.fmt_money(frappe.utils.flt(balance_row["future_amount"]), currency=data[data|length-1]["currency"]) }} + {{ frappe.utils.fmt_money(frappe.utils.flt(balance_row["future_amount"]), currency=balance_row["currency"]) }}