Skip to content

Commit

Permalink
fix: wrong currency on financial-statement based reports (#36524)
Browse files Browse the repository at this point in the history
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 ce25f9e)

Co-authored-by: Naufal Afif <naufalafif58@gmail.com>
  • Loading branch information
mergify[bot] and naufalafif authored Aug 13, 2023
1 parent 0a832bc commit 3044f46
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion erpnext/accounts/report/financial_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3044f46

Please sign in to comment.