mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 08:05:00 +00:00
Merge pull request #46521 from frappe/mergify/bp/version-15-hotfix/pr-46497
fix: use `party` explicitly instead of party_field (backport #46497)
This commit is contained in:
@@ -729,11 +729,12 @@ class ReceivablePayableReport:
|
||||
"company": self.filters.company,
|
||||
"update_outstanding_for_self": 0,
|
||||
}
|
||||
|
||||
or_filters = {}
|
||||
for party_type in self.party_type:
|
||||
if party_type := self.filters.party_type:
|
||||
party_field = scrub(party_type)
|
||||
if self.filters.get(party_field):
|
||||
or_filters.update({party_field: ["in", self.filters.get(party_field)]})
|
||||
if parties := self.filters.get("party"):
|
||||
or_filters.update({party_field: ["in", parties]})
|
||||
|
||||
self.return_entries = frappe._dict(
|
||||
frappe.get_all(
|
||||
|
||||
Reference in New Issue
Block a user