Skip to content

Commit

Permalink
fix: Consider paryt and party type as well in group by consolidated view
Browse files Browse the repository at this point in the history
(cherry picked from commit c2d52a1)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed May 6, 2022
1 parent 4c2fdfe commit 189fc89
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion erpnext/accounts/report/general_ledger/general_ledger.py
Expand Up @@ -478,7 +478,13 @@ def update_value_in_dict(data, key, gle):
gle_map[group_by_value].entries.append(gle)

elif group_by_voucher_consolidated:
keylist = [gle.get("voucher_type"), gle.get("voucher_no"), gle.get("account")]
keylist = [
gle.get("voucher_type"),
gle.get("voucher_no"),
gle.get("account"),
gle.get("party_type"),
gle.get("party"),
]
if filters.get("include_dimensions"):
for dim in accounting_dimensions:
keylist.append(gle.get(dim))
Expand Down

0 comments on commit 189fc89

Please sign in to comment.