Update accounts_receivable.py

This commit is contained in:
Nabin Hait 2018-12-20 14:11:20 +05:30 committed by GitHub
parent b645c2c75e
commit 0866b2b75a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -545,7 +545,7 @@ class ReceivablePayableReport(object):
where si.name = ps.parent and
si.docstatus = 1 and si.company = '%s' and
si.name in (%s) order by ps.due_date
""" % (self.filters.company, ','.join(['%s'] *len(voucher_nos))),
""" % (frappe.db.escape(self.filters.company), ','.join(['%s'] *len(voucher_nos))),
(tuple(voucher_nos)), as_dict = 1)
for d in payment_terms_details: