mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
Merge pull request #50602 from frappe/mergify/bp/version-16-beta/pr-50516
fix(general_ledger): add translation for accounting dimension (backport #50516)
This commit is contained in:
@@ -588,6 +588,13 @@ def get_accountwise_gle(filters, accounting_dimensions, gl_entries, gle_map):
|
|||||||
else:
|
else:
|
||||||
update_value_in_dict(consolidated_gle, key, gle)
|
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():
|
for value in consolidated_gle.values():
|
||||||
update_value_in_dict(totals, "total", value)
|
update_value_in_dict(totals, "total", value)
|
||||||
update_value_in_dict(totals, "closing", value)
|
update_value_in_dict(totals, "closing", value)
|
||||||
|
|||||||
Reference in New Issue
Block a user