Skip to content

Commit

Permalink
fix: lost opportunity report issue (#34626)
Browse files Browse the repository at this point in the history
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 d0660ad)

Co-authored-by: Komal-Saraf0609 <81952590+Komal-Saraf0609@users.noreply.github.com>
  • Loading branch information
mergify[bot] and Komal-Saraf0609 committed Mar 29, 2023
1 parent 625b8e8 commit ab06cb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion erpnext/crm/report/lead_details/lead_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_data(filters):
`tabAddress`.name=`tabDynamic Link`.parent)
WHERE
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}
ORDER BY
`tabLead`.creation asc """.format(
Expand Down
2 changes: 1 addition & 1 deletion erpnext/crm/report/lost_opportunity/lost_opportunity.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_data(filters):
{join}
WHERE
`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}
GROUP BY
`tabOpportunity`.name
Expand Down

0 comments on commit ab06cb4

Please sign in to comment.