From e90a2a346b9de9efe1a0abd13c804568dfc27343 Mon Sep 17 00:00:00 2001 From: Anuja P Date: Thu, 13 May 2021 15:15:47 +0530 Subject: [PATCH] fix: update new changes --- .../process_statement_of_accounts.html | 12 ++++++------ .../process_statement_of_accounts.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.html b/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.html index f44d5953326..db1fea192ee 100644 --- a/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.html +++ b/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.html @@ -79,8 +79,8 @@
- {% if aging %} -

{{ _("Ageing Report based on ") }} {{ aging.ageing_based_on }} + {% if ageing %} +

{{ _("Ageing Report based on ") }} {{ ageing.ageing_based_on }} {{ _("up to " ) }} {{ frappe.format(filters.to_date, 'Date')}}

@@ -94,10 +94,10 @@ - - - - + + + +
{{ frappe.utils.fmt_money(aging.range1, currency=filters.presentation_currency) }}{{ frappe.utils.fmt_money(aging.range2, currency=filters.presentation_currency) }}{{ frappe.utils.fmt_money(aging.range3, currency=filters.presentation_currency) }}{{ frappe.utils.fmt_money(aging.range4, currency=filters.presentation_currency) }}{{ frappe.utils.fmt_money(ageing.range1, currency=filters.presentation_currency) }}{{ frappe.utils.fmt_money(ageing.range2, currency=filters.presentation_currency) }}{{ frappe.utils.fmt_money(ageing.range3, currency=filters.presentation_currency) }}{{ frappe.utils.fmt_money(ageing.range4, currency=filters.presentation_currency) }}
diff --git a/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.py b/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.py index 01157d6eafc..cf79c03935d 100644 --- a/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.py +++ b/erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.py @@ -94,7 +94,7 @@ def get_report_pdf(doc, consolidated=True): continue html = frappe.render_template(template_path, \ - {"filters": filters, "data": res, "aging": aging[0] if doc.include_ageing else None, + {"filters": filters, "data": res, "ageing": ageing[0] if doc.include_ageing else None, "letter_head": letter_head if doc.letter_head else None, "terms_and_conditions": frappe.db.get_value('Terms and Conditions', doc.terms_and_conditions, 'terms') if doc.terms_and_conditions else None})