commit | 6aa8fd0f7b35d3bed60888b1aefec0d817f1c325 | [log] [tgz] |
---|---|---|
author | ruthra kumar <ruthra@erpnext.com> | Thu Aug 25 15:50:06 2022 +0530 |
committer | ruthra kumar <ruthra@erpnext.com> | Thu Aug 25 15:50:06 2022 +0530 |
tree | 730d2c74e14e600de4727750feacaf51d689f142 | |
parent | 8566832dd51bc78d04ae2b0268883b4ae890a98a [diff] |
fix: restrict party types to Supplier/Customer for AR/AP report
diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py index 63242e8..f4f2989 100755 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py
@@ -731,6 +731,7 @@ def prepare_conditions(self): self.qb_selection_filter = [] party_type_field = scrub(self.party_type) + self.qb_selection_filter.append(self.ple.party_type == self.party_type) self.add_common_filters(party_type_field=party_type_field)