mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 05:29:18 +00:00
fix: Translate weekday when getting weekly off dates (#25691)
This commit is contained in:
@@ -23,7 +23,7 @@ class HolidayList(Document):
|
|||||||
last_idx = max([cint(d.idx) for d in self.get("holidays")] or [0,])
|
last_idx = max([cint(d.idx) for d in self.get("holidays")] or [0,])
|
||||||
for i, d in enumerate(date_list):
|
for i, d in enumerate(date_list):
|
||||||
ch = self.append('holidays', {})
|
ch = self.append('holidays', {})
|
||||||
ch.description = self.weekly_off
|
ch.description = _(self.weekly_off)
|
||||||
ch.holiday_date = d
|
ch.holiday_date = d
|
||||||
ch.weekly_off = 1
|
ch.weekly_off = 1
|
||||||
ch.idx = last_idx + i + 1
|
ch.idx = last_idx + i + 1
|
||||||
|
|||||||
Reference in New Issue
Block a user