[fix] [minor] don't show cancelled sales orders
This commit is contained in:
parent
0aadb9e213
commit
1ee5ae1e25
@ -518,7 +518,9 @@ def get_events(start, end, filters=None):
|
|||||||
data = frappe.db.sql("""select name, customer_name, delivery_status, billing_status, delivery_date
|
data = frappe.db.sql("""select name, customer_name, delivery_status, billing_status, delivery_date
|
||||||
from `tabSales Order`
|
from `tabSales Order`
|
||||||
where (ifnull(delivery_date, '0000-00-00')!= '0000-00-00') \
|
where (ifnull(delivery_date, '0000-00-00')!= '0000-00-00') \
|
||||||
and (delivery_date between %(start)s and %(end)s) {conditions}
|
and (delivery_date between %(start)s and %(end)s)
|
||||||
|
and docstatus < 2
|
||||||
|
{conditions}
|
||||||
""".format(conditions=conditions), {
|
""".format(conditions=conditions), {
|
||||||
"start": start,
|
"start": start,
|
||||||
"end": end
|
"end": end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user