Skip to content

Commit

Permalink
fix(holiday-list): use same date format for same holiday error message (
Browse files Browse the repository at this point in the history
#42606)

* fix(holiday-list): use same date format for same holiday error message

* chore: fix formatting

---------

Co-authored-by: Rucha Mahabal <[email protected]>
(cherry picked from commit a435441)
  • Loading branch information
ananyo141 authored and mergify[bot] committed Sep 14, 2024
1 parent ef6b172 commit 921ad93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion erpnext/setup/doctype/holiday_list/holiday_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ def validate_duplicate_date(self):
unique_dates = []
for row in self.holidays:
if row.holiday_date in unique_dates:
frappe.throw(_("Holiday Date {0} added multiple times").format(frappe.bold(row.holiday_date)))
frappe.throw(
_("Holiday Date {0} added multiple times").format(
frappe.bold(formatdate(row.holiday_date))
)
)

unique_dates.append(row.holiday_date)

Expand Down

0 comments on commit 921ad93

Please sign in to comment.