mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
remove duplicate day validation
This commit is contained in:
@@ -26,10 +26,4 @@ class AppointmentBookingSettings(Document):
|
|||||||
frappe.throw('From Time cannot be later than To Time for '+record.day_of_week)
|
frappe.throw('From Time cannot be later than To Time for '+record.day_of_week)
|
||||||
|
|
||||||
if timedelta.total_seconds() % (self.appointment_duration * 60):
|
if timedelta.total_seconds() % (self.appointment_duration * 60):
|
||||||
frappe.throw('The difference between from time and To Time must be a multiple of Appointment ')
|
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'))
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user