fix: consider all years in holiday list
(cherry picked from commit 300aaa39fe
)
This commit is contained in:
parent
b748095589
commit
21eed78fa1
@ -87,7 +87,7 @@ class HolidayList(Document):
|
||||
for holiday_date, holiday_name in country_holidays(
|
||||
self.country,
|
||||
subdiv=self.subdivision,
|
||||
years=[from_date.year, to_date.year],
|
||||
years=list(range(from_date.year, to_date.year + 1)),
|
||||
language=frappe.local.lang,
|
||||
).items():
|
||||
if holiday_date in existing_holidays:
|
||||
|
Loading…
Reference in New Issue
Block a user