commit | f3b3d81e0bba3996c11b8e5aa93a2aec3a04ac5b | [log] [tgz] |
---|---|---|
author | Ankush Menat <ankush@iwebnotes.com> | Mon May 17 16:43:38 2021 +0530 |
committer | Ankush Menat <ankush@iwebnotes.com> | Mon May 17 17:06:41 2021 +0530 |
tree | 4825fb5e05a75c2feab9d4d765647cf368076b97 | |
parent | e85770fe3f7d64380b84d5c5b82412045459e5fe [diff] |
fix: escape company name in deferred_revenue
diff --git a/erpnext/accounts/deferred_revenue.py b/erpnext/accounts/deferred_revenue.py index d5ab1c1..0f47b95 100644 --- a/erpnext/accounts/deferred_revenue.py +++ b/erpnext/accounts/deferred_revenue.py
@@ -41,7 +41,7 @@ if account: conditions += "AND %s='%s'"%(deferred_account, account) elif company: - conditions += "AND p.company='%s'"%(company) + conditions += f"AND p.company = {frappe.db.escape(company)}" return conditions