fix: Patient Appointment - Calendar - status != Cancelled
This commit is contained in:
parent
17bb0da278
commit
f2d7e3309f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user