Skip to content

Commit

Permalink
fix: Set filter condition and spell in AR
Browse files Browse the repository at this point in the history
(cherry picked from commit e2b4ae1)
  • Loading branch information
nihantra authored and mergify[bot] committed Sep 12, 2022
1 parent 3083b4c commit 174c750
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def add_common_filters(self, party_type_field):
def add_customer_filters(
self,
):
self.customter = qb.DocType("Customer")
self.customer = qb.DocType("Customer")

if self.filters.get("customer_group"):
self.get_hierarchical_filters("Customer Group", "customer_group")
Expand Down Expand Up @@ -838,7 +838,7 @@ def get_hierarchical_filters(self, doctype, key):
customer = self.customer
groups = qb.from_(doc).select(doc.name).where((doc.lft >= lft) & (doc.rgt <= rgt))
customers = qb.from_(customer).select(customer.name).where(customer[key].isin(groups))
self.qb_selection_filter.append(ple.isin(ple.party.isin(customers)))
self.qb_selection_filter.append(ple.party.isin(customers))

def add_accounting_dimensions_filters(self):
accounting_dimensions = get_accounting_dimensions(as_list=False)
Expand Down

0 comments on commit 174c750

Please sign in to comment.