Minor fix in sales funnel report

This commit is contained in:
Nabin Hait
2014-04-28 15:43:32 +05:30
parent 41d126586e
commit 48962e1148

View File

@@ -22,7 +22,7 @@ def get_funnel_data(from_date, to_date):
where docstatus = 1 and (date(`creation`) between %s and %s) where docstatus = 1 and (date(`creation`) between %s and %s)
and status != "Lost" """, (from_date, to_date))[0][0] and status != "Lost" """, (from_date, to_date))[0][0]
sales_orders = frappe.db.sql("""select count(*) from `tabQuotation` sales_orders = frappe.db.sql("""select count(*) from `tabSales Order`
where docstatus = 1 and (date(`creation`) between %s and %s)""", (from_date, to_date))[0][0] where docstatus = 1 and (date(`creation`) between %s and %s)""", (from_date, to_date))[0][0]
return [ return [