mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 08:47:33 +00:00
fix(deferred_revenue): Escape account in query
(cherry picked from commit c7b3ae41d4)
This commit is contained in:
@@ -58,7 +58,7 @@ def build_conditions(process_type, account, company):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if account:
|
if account:
|
||||||
conditions += f"AND {deferred_account}='{account}'"
|
conditions += f"AND {deferred_account}='{frappe.db.escape(account)}'"
|
||||||
elif company:
|
elif company:
|
||||||
conditions += f"AND p.company = {frappe.db.escape(company)}"
|
conditions += f"AND p.company = {frappe.db.escape(company)}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user