mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
Merge pull request #4869 from sbkolate/patch-2
opportunities status fix in Sales Funnel report
This commit is contained in:
@@ -17,7 +17,7 @@ def get_funnel_data(from_date, to_date):
|
|||||||
and status != "Passive" """, (from_date, to_date))[0][0]
|
and status != "Passive" """, (from_date, to_date))[0][0]
|
||||||
|
|
||||||
opportunities = frappe.db.sql("""select count(*) from `tabOpportunity`
|
opportunities = frappe.db.sql("""select count(*) from `tabOpportunity`
|
||||||
where docstatus = 1 and (date(`creation`) between %s and %s)
|
where (date(`creation`) between %s and %s)
|
||||||
and status != "Lost" """, (from_date, to_date))[0][0]
|
and status != "Lost" """, (from_date, to_date))[0][0]
|
||||||
|
|
||||||
quotations = frappe.db.sql("""select count(*) from `tabQuotation`
|
quotations = frappe.db.sql("""select count(*) from `tabQuotation`
|
||||||
|
|||||||
Reference in New Issue
Block a user