fix: consider all years in holiday list
This commit is contained in:
parent
4415212a2d
commit
300aaa39fe
@ -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…
x
Reference in New Issue
Block a user