mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-25 15:49:31 +00:00
fix(general_ledger): add translation for accounting dimension
(cherry picked from commit 113ff17c71)
This commit is contained in:
committed by
Mergify
parent
a4a0a2a0fb
commit
799119ad3e
@@ -566,6 +566,13 @@ def get_accountwise_gle(filters, accounting_dimensions, gl_entries, gle_map, tot
|
|||||||
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