Merge pull request #30915 from frappe/mergify/bp/version-13-hotfix/pr-30897

fix: Consider party and party type as well in group by consolidated view (backport #30897)
This commit is contained in:
Deepesh Garg
2022-05-06 13:37:54 +05:30
committed by GitHub

View File

@@ -478,7 +478,13 @@ def get_accountwise_gle(filters, accounting_dimensions, gl_entries, gle_map):
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))