fix: handle multiselect filters for tree doctypes in Customer Ledger Summary Report

(cherry picked from commit 536f7d5ff8)
This commit is contained in:
ljain112
2025-05-27 17:27:29 +05:30
committed by Mergify
parent 4c49ab19d6
commit f783bf60a4

View File

@@ -458,9 +458,16 @@ class PartyLedgerSummaryReport:
def get_children(doctype, value):
children = get_descendants_of(doctype, value)
if not isinstance(value, list):
value = [d.strip() for d in value.strip().split(",") if d]
return [value, *children]
all_children = []
for d in value:
all_children += get_descendants_of(doctype, value)
all_children.append(d)
return list(set(all_children))
def execute(filters=None):