fix: escape company name in deferred_revenue
This commit is contained in:
parent
e85770fe3f
commit
f3b3d81e0b
@ -41,7 +41,7 @@ def build_conditions(process_type, account, company):
|
|||||||
if account:
|
if account:
|
||||||
conditions += "AND %s='%s'"%(deferred_account, account)
|
conditions += "AND %s='%s'"%(deferred_account, account)
|
||||||
elif company:
|
elif company:
|
||||||
conditions += "AND p.company='%s'"%(company)
|
conditions += f"AND p.company = {frappe.db.escape(company)}"
|
||||||
|
|
||||||
return conditions
|
return conditions
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user