Merge pull request #42764 from frappe/mergify/bp/version-15-hotfix/pr-42458

fix: use company default currency in report (backport #42458)
This commit is contained in:
ruthra kumar
2024-10-23 17:33:53 +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",
) )
) )