mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 11:25:09 +00:00
fix(list_opportunity_report): parameterized lost_reason (#54160)
This commit is contained in:
@@ -117,7 +117,7 @@ def get_join(filters):
|
||||
join = """JOIN `tabOpportunity Lost Reason Detail`
|
||||
ON `tabOpportunity Lost Reason Detail`.parenttype = 'Opportunity' and
|
||||
`tabOpportunity Lost Reason Detail`.parent = `tabOpportunity`.name and
|
||||
`tabOpportunity Lost Reason Detail`.lost_reason = '{}'
|
||||
""".format(filters.get("lost_reason"))
|
||||
`tabOpportunity Lost Reason Detail`.lost_reason=%(lost_reason)s
|
||||
"""
|
||||
|
||||
return join
|
||||
|
||||
Reference in New Issue
Block a user