diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py index 3ffa2e359308..3700f00ee226 100755 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py @@ -764,12 +764,17 @@ def prepare_conditions(self): self.qb_selection_filter = [] self.or_filters = [] - self.add_common_filters(party_type_field=self.filters.party_type) - if self.filters.party_type == "Customer": - self.add_customer_filters() + for party_type in self.party_type: + party_type_field = scrub(party_type) + self.or_filters.append(self.ple.party_type == party_type) + + self.add_common_filters(party_type_field=party_type_field) + + if party_type_field == "customer": + self.add_customer_filters() - elif self.filters.party_type == "Supplier": - self.add_supplier_filters() + elif party_type_field == "supplier": + self.add_supplier_filters() if self.filters.cost_center: self.get_cost_center_conditions()