mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
Update accounts_receivable.py
This commit is contained in:
@@ -300,8 +300,8 @@ class ReceivablePayableReport(object):
|
|||||||
values.append(self.filters.get("sales_partner"))
|
values.append(self.filters.get("sales_partner"))
|
||||||
|
|
||||||
if self.filters.get("sales_person"):
|
if self.filters.get("sales_person"):
|
||||||
conditions.append("party in (select parent from `tabSales Team` where sales_person=%s and \
|
conditions.append("""party in (select parent
|
||||||
parenttype = 'Customer')")
|
from `tabSales Team` where sales_person=%s and parenttype = 'Customer')""")
|
||||||
values.append(self.filters.get("sales_person"))
|
values.append(self.filters.get("sales_person"))
|
||||||
return " and ".join(conditions), values
|
return " and ".join(conditions), values
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user