fix: payment terms and sales partner filter issue in AR/AP report
This commit is contained in:
parent
2e2590b224
commit
13c4420f42
@ -794,19 +794,19 @@ class ReceivablePayableReport(object):
|
|||||||
|
|
||||||
if self.filters.get("payment_terms_template"):
|
if self.filters.get("payment_terms_template"):
|
||||||
self.qb_selection_filter.append(
|
self.qb_selection_filter.append(
|
||||||
self.ple.party_isin(
|
self.ple.party.isin(
|
||||||
qb.from_(self.customer).where(
|
qb.from_(self.customer)
|
||||||
self.customer.payment_terms == self.filters.get("payment_terms_template")
|
.select(self.customer.name)
|
||||||
)
|
.where(self.customer.payment_terms == self.filters.get("payment_terms_template"))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.filters.get("sales_partner"):
|
if self.filters.get("sales_partner"):
|
||||||
self.qb_selection_filter.append(
|
self.qb_selection_filter.append(
|
||||||
self.ple.party_isin(
|
self.ple.party.isin(
|
||||||
qb.from_(self.customer).where(
|
qb.from_(self.customer)
|
||||||
self.customer.default_sales_partner == self.filters.get("payment_terms_template")
|
.select(self.customer.name)
|
||||||
)
|
.where(self.customer.default_sales_partner == self.filters.get("payment_terms_template"))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user