Skip to content

Commit

Permalink
fix: restrict party types to Supplier/Customer for AR/AP report
Browse files Browse the repository at this point in the history
(cherry picked from commit 6aa8fd0)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Aug 25, 2022
1 parent 4d8ced6 commit c407d1e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ def get_sales_invoices_or_customers_based_on_sales_person(self):
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)

Expand Down

0 comments on commit c407d1e

Please sign in to comment.