Skip to content

Commit

Permalink
Merge pull request #30897 from deepeshgarg007/general_ledger_consolid…
Browse files Browse the repository at this point in the history
…ated

fix: Consider party and party type as well in group by consolidated view
  • Loading branch information
deepeshgarg007 committed May 6, 2022
2 parents f255741 + c2d52a1 commit c05144f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion erpnext/accounts/report/general_ledger/general_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,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 c05144f

Please sign in to comment.