mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
fix(UX): Store weekly off at the end of holiday list (#53833)
Perhaps these two should be stored separately too?
This commit is contained in:
@@ -109,7 +109,7 @@ class HolidayList(Document):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def sort_holidays(self):
|
def sort_holidays(self):
|
||||||
self.holidays.sort(key=lambda x: getdate(x.holiday_date))
|
self.holidays.sort(key=lambda x: (x.weekly_off, getdate(x.holiday_date)))
|
||||||
for i in range(len(self.holidays)):
|
for i in range(len(self.holidays)):
|
||||||
self.holidays[i].idx = i + 1
|
self.holidays[i].idx = i + 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user