From f9a9754dab1caf9c415807d8d5d338de3bf4575e Mon Sep 17 00:00:00 2001 From: sbkolate Date: Wed, 24 Feb 2016 19:25:35 +0530 Subject: [PATCH] opportunities status fix in Sales Funnel report reference https://discuss.erpnext.com/t/sales-funnel-not-showing-updated-opportunities/10702/4 --- erpnext/selling/page/sales_funnel/sales_funnel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/selling/page/sales_funnel/sales_funnel.py b/erpnext/selling/page/sales_funnel/sales_funnel.py index eb3b996c6c..4d12efd99b 100644 --- a/erpnext/selling/page/sales_funnel/sales_funnel.py +++ b/erpnext/selling/page/sales_funnel/sales_funnel.py @@ -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`