Merge pull request #50601 from frappe/mergify/bp/version-15-hotfix/pr-50516

fix(general_ledger): add translation for accounting dimension (backport #50516)
This commit is contained in:
ruthra kumar
2025-11-18 17:13:34 +05:30
committed by GitHub

View File

@@ -566,6 +566,13 @@ def get_accountwise_gle(filters, accounting_dimensions, gl_entries, gle_map, tot
else:
update_value_in_dict(consolidated_gle, key, gle)
if filters.get("include_dimensions"):
dimensions = [*accounting_dimensions, "cost_center", "project"]
for dimension in dimensions:
if val := gle.get(dimension):
gle[dimension] = _(val)
for value in consolidated_gle.values():
update_value_in_dict(totals, "total", value)
update_value_in_dict(totals, "closing", value)