From 3044f46c52a3ea7cf5bcbfb4abc88bc400aea4a4 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sun, 13 Aug 2023 17:11:47 +0530 Subject: [PATCH] fix: wrong currency on financial-statement based reports (#36524) fix: wrong currency on financial-statement based reports (#36524) * add missing field options on financial_statement Total field * format financial statement code (cherry picked from commit ce25f9e8c9cf165d03b993f8c3e04caa83d5bb1d) Co-authored-by: Naufal Afif --- erpnext/accounts/report/financial_statements.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/report/financial_statements.py b/erpnext/accounts/report/financial_statements.py index 6b2341cef13..693725d8f50 100644 --- a/erpnext/accounts/report/financial_statements.py +++ b/erpnext/accounts/report/financial_statements.py @@ -637,7 +637,13 @@ def get_columns(periodicity, period_list, accumulated_values=1, company=None): if periodicity != "Yearly": if not accumulated_values: columns.append( - {"fieldname": "total", "label": _("Total"), "fieldtype": "Currency", "width": 150} + { + "fieldname": "total", + "label": _("Total"), + "fieldtype": "Currency", + "width": 150, + "options": "currency", + } ) return columns