Merge pull request #42458 from Sanket322/currency_format_in_report

fix: use company default currency in report
This commit is contained in:
Smit Vora
2024-08-14 13:38:21 +05:30
committed by GitHub

View File

@@ -130,6 +130,7 @@ class PaymentLedger:
) )
def get_columns(self): def get_columns(self):
company_currency = frappe.get_cached_value("Company", self.filters.get("company"), "default_currency")
options = None options = None
self.columns.append( self.columns.append(
dict( dict(
@@ -194,7 +195,7 @@ class PaymentLedger:
label=_("Amount"), label=_("Amount"),
fieldname="amount", fieldname="amount",
fieldtype="Currency", fieldtype="Currency",
options="Company:company:default_currency", options=company_currency,
width="100", width="100",
) )
) )