Skip to content

Commit

Permalink
fix: typo in method - holiday list (#41811)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nihantra-Patel committed Jun 6, 2024
1 parent c992656 commit 699cfd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/setup/doctype/holiday_list/holiday_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -148,7 +148,7 @@ def get_weekly_off_date_list(self, start_date, end_date):
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:
Expand Down

0 comments on commit 699cfd8

Please sign in to comment.