mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 08:47:33 +00:00
fix: typo in method - holiday list (#41811)
(cherry picked from commit 699cfd85c6)
Co-authored-by: Nihantra C. Patel <141945075+Nihantra-Patel@users.noreply.github.com>
This commit is contained in:
@@ -42,7 +42,7 @@ class HolidayList(Document):
|
|||||||
def validate(self):
|
def validate(self):
|
||||||
self.validate_days()
|
self.validate_days()
|
||||||
self.total_holidays = len(self.holidays)
|
self.total_holidays = len(self.holidays)
|
||||||
self.validate_dupliacte_date()
|
self.validate_duplicate_date()
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_weekly_off_dates(self):
|
def get_weekly_off_dates(self):
|
||||||
@@ -148,7 +148,7 @@ class HolidayList(Document):
|
|||||||
def clear_table(self):
|
def clear_table(self):
|
||||||
self.set("holidays", [])
|
self.set("holidays", [])
|
||||||
|
|
||||||
def validate_dupliacte_date(self):
|
def validate_duplicate_date(self):
|
||||||
unique_dates = []
|
unique_dates = []
|
||||||
for row in self.holidays:
|
for row in self.holidays:
|
||||||
if row.holiday_date in unique_dates:
|
if row.holiday_date in unique_dates:
|
||||||
|
|||||||
Reference in New Issue
Block a user