!2809 添加功能

Merge pull request !2809 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-05-21 08:41:23 +00:00
committed by Gitee
2 changed files with 3 additions and 2 deletions
@@ -793,6 +793,7 @@ class HrAttendance(models.Model):
'is_early_card': False,
'is_late_card': False,
'is_abnormal': False,
'is_approval': True,
})
class card_remind_form(models.Model):
@@ -1078,8 +1078,8 @@ class HrAttendanceDetail(models.Model):
if not global_leave:
return False
for leave in global_leave:
if leave.alternate_rest_day:
for rest_day in str(leave.alternate_rest_day).split(","):
if leave.shift_replacement_day:
for rest_day in str(leave.shift_replacement_day).split(","):
# rest_day_month = str(rest_day).split("月")[0]
rest_day_month = datetime.strptime(rest_day, "%m月%d日").strftime("%m")
# rest_day_day = str(str(rest_day).split("月")[1].replace("月", "")).split("日")[0]