opportunities status fix in Sales Funnel report

reference https://discuss.erpnext.com/t/sales-funnel-not-showing-updated-opportunities/10702/4
This commit is contained in:
sbkolate 2016-02-24 19:25:35 +05:30
parent 980f68a5fa
commit f9a9754dab

View File

@ -17,7 +17,7 @@ def get_funnel_data(from_date, to_date):
and status != "Passive" """, (from_date, to_date))[0][0]
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]
quotations = frappe.db.sql("""select count(*) from `tabQuotation`