fix: lost opportunity report issue (#34626)
fix: lost opportunity report issue (#34626)
* fix: lost opportunity report issue
* chore: Linting Issues
---------
Co-authored-by: Komal Saraf <komal@frappe.io>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
(cherry picked from commit d0660ad222)
Co-authored-by: Komal-Saraf0609 <81952590+Komal-Saraf0609@users.noreply.github.com>
This commit is contained in:
@@ -98,7 +98,7 @@ def get_data(filters):
|
|||||||
`tabAddress`.name=`tabDynamic Link`.parent)
|
`tabAddress`.name=`tabDynamic Link`.parent)
|
||||||
WHERE
|
WHERE
|
||||||
company = %(company)s
|
company = %(company)s
|
||||||
AND `tabLead`.creation BETWEEN %(from_date)s AND %(to_date)s
|
AND DATE(`tabLead`.creation) BETWEEN %(from_date)s AND %(to_date)s
|
||||||
{conditions}
|
{conditions}
|
||||||
ORDER BY
|
ORDER BY
|
||||||
`tabLead`.creation asc """.format(
|
`tabLead`.creation asc """.format(
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ def get_data(filters):
|
|||||||
{join}
|
{join}
|
||||||
WHERE
|
WHERE
|
||||||
`tabOpportunity`.status = 'Lost' and `tabOpportunity`.company = %(company)s
|
`tabOpportunity`.status = 'Lost' and `tabOpportunity`.company = %(company)s
|
||||||
AND `tabOpportunity`.modified BETWEEN %(from_date)s AND %(to_date)s
|
AND DATE(`tabOpportunity`.modified) BETWEEN %(from_date)s AND %(to_date)s
|
||||||
{conditions}
|
{conditions}
|
||||||
GROUP BY
|
GROUP BY
|
||||||
`tabOpportunity`.name
|
`tabOpportunity`.name
|
||||||
|
|||||||
Reference in New Issue
Block a user