mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
Removed unused code
This commit is contained in:
committed by
Anand Doshi
parent
c666030f34
commit
3427c939bd
@@ -30,10 +30,6 @@ class HolidayList(Document):
|
|||||||
if not self.weekly_off:
|
if not self.weekly_off:
|
||||||
throw(_("Please select weekly off day"))
|
throw(_("Please select weekly off day"))
|
||||||
|
|
||||||
def validate_weekly_days(self):
|
|
||||||
for day in self.get("holidays"):
|
|
||||||
if (self.weekly_off or "").upper() == (day.description or "").upper():
|
|
||||||
frappe.throw("Records already exist for mentioned weekly off")
|
|
||||||
|
|
||||||
def validate_days(self):
|
def validate_days(self):
|
||||||
for day in self.get("holidays"):
|
for day in self.get("holidays"):
|
||||||
|
|||||||
Reference in New Issue
Block a user