remove duplicate day validation

This commit is contained in:
Pranav Nachanekar 2019-10-03 13:32:57 +05:30
parent 1dccc039b7
commit 8640a01f85

View File

@ -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 ')