Update accounts_receivable.py

This commit is contained in:
rohitwaghchaure 2018-01-29 12:34:19 +05:30 committed by GitHub
parent 2136a7bded
commit 62b31bf708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,8 +300,8 @@ class ReceivablePayableReport(object):
values.append(self.filters.get("sales_partner"))
if self.filters.get("sales_person"):
conditions.append("party in (select parent from `tabSales Team` where sales_person=%s and \
parenttype = 'Customer')")
conditions.append("""party in (select parent
from `tabSales Team` where sales_person=%s and parenttype = 'Customer')""")
values.append(self.filters.get("sales_person"))
return " and ".join(conditions), values