mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 11:44:11 +00:00
fix: consider all years in holiday list
(cherry picked from commit 300aaa39fe)
This commit is contained in:
@@ -63,7 +63,7 @@ class HolidayList(Document):
|
|||||||
for holiday_date, holiday_name in country_holidays(
|
for holiday_date, holiday_name in country_holidays(
|
||||||
self.country,
|
self.country,
|
||||||
subdiv=self.subdivision,
|
subdiv=self.subdivision,
|
||||||
years=[from_date.year, to_date.year],
|
years=list(range(from_date.year, to_date.year + 1)),
|
||||||
language=frappe.local.lang,
|
language=frappe.local.lang,
|
||||||
).items():
|
).items():
|
||||||
if holiday_date in existing_holidays:
|
if holiday_date in existing_holidays:
|
||||||
|
|||||||
Reference in New Issue
Block a user