mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 05:58:27 +00:00
fix: typo in method - holiday list (#41811)
This commit is contained in:
committed by
GitHub
parent
c992656fa8
commit
699cfd85c6
@@ -42,7 +42,7 @@ class HolidayList(Document):
|
||||
def validate(self):
|
||||
self.validate_days()
|
||||
self.total_holidays = len(self.holidays)
|
||||
self.validate_dupliacte_date()
|
||||
self.validate_duplicate_date()
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_weekly_off_dates(self):
|
||||
@@ -148,7 +148,7 @@ class HolidayList(Document):
|
||||
def clear_table(self):
|
||||
self.set("holidays", [])
|
||||
|
||||
def validate_dupliacte_date(self):
|
||||
def validate_duplicate_date(self):
|
||||
unique_dates = []
|
||||
for row in self.holidays:
|
||||
if row.holiday_date in unique_dates:
|
||||
|
||||
Reference in New Issue
Block a user