fix: Patient Appointment - Calendar - status != Cancelled

This commit is contained in:
Jamsheer 2018-11-23 16:29:30 +05:30
parent 17bb0da278
commit f2d7e3309f

View File

@ -373,7 +373,7 @@ def get_events(start, end, filters=None):
left join `tabAppointment Type` on `tabPatient Appointment`.appointment_type=`tabAppointment Type`.name
where
(`tabPatient Appointment`.appointment_date between %(start)s and %(end)s)
and `tabPatient Appointment`.docstatus < 2 {conditions}""".format(conditions=conditions),
and `tabPatient Appointment`.status != 'Cancelled' and `tabPatient Appointment`.docstatus < 2 {conditions}""".format(conditions=conditions),
{"start": start, "end": end}, as_dict=True, update={"allDay": 0})
for item in data: