We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
lost_reason
1 parent 97c4cd1 commit 1604c21Copy full SHA for 1604c21
1 file changed
erpnext/crm/report/lost_opportunity/lost_opportunity.py
@@ -117,7 +117,7 @@ def get_join(filters):
117
join = """JOIN `tabOpportunity Lost Reason Detail`
118
ON `tabOpportunity Lost Reason Detail`.parenttype = 'Opportunity' and
119
`tabOpportunity Lost Reason Detail`.parent = `tabOpportunity`.name and
120
- `tabOpportunity Lost Reason Detail`.lost_reason = '{}'
121
- """.format(filters.get("lost_reason"))
+ `tabOpportunity Lost Reason Detail`.lost_reason=%(lost_reason)s
+ """
122
123
return join
0 commit comments