mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 19:35:09 +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):
|
||||
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)):
|
||||
self.holidays[i].idx = i + 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user