mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-24 21:52:21 +01:00
fix: handle multiselect filters for tree doctypes in Customer Ledger Summary Report
(cherry picked from commit 536f7d5ff8)
This commit is contained in:
@@ -458,9 +458,16 @@ class PartyLedgerSummaryReport:
|
|||||||
|
|
||||||
|
|
||||||
def get_children(doctype, value):
|
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):
|
def execute(filters=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user