remove duplicate day validation
This commit is contained in:
parent
1dccc039b7
commit
8640a01f85
@ -26,10 +26,4 @@ class AppointmentBookingSettings(Document):
|
||||
frappe.throw('From Time cannot be later than To Time for '+record.day_of_week)
|
||||
|
||||
if timedelta.total_seconds() % (self.appointment_duration * 60):
|
||||
frappe.throw('The difference between from time and To Time must be a multiple of Appointment ')
|
||||
|
||||
set_of_days = set(list_of_days)
|
||||
|
||||
if len(list_of_days) > len(set_of_days):
|
||||
frappe.throw(_('Days of week must be unique'))
|
||||
|
||||
frappe.throw('The difference between from time and To Time must be a multiple of Appointment ')
|
Loading…
x
Reference in New Issue
Block a user