diff --git a/yuthon_holiday/models/inherit_hr_leave.py b/yuthon_holiday/models/inherit_hr_leave.py index 89ef499cf..4ed026a2b 100644 --- a/yuthon_holiday/models/inherit_hr_leave.py +++ b/yuthon_holiday/models/inherit_hr_leave.py @@ -549,7 +549,7 @@ class HolidaysRequestBatch(models.Model): }) ('start_time', '>=', datetime(2025, 12, 1)), remaining_deduct = deduct_days - vacation_report.vacation_report += deduct_days + vacation_report.used_this_year1 += deduct_days # 优先扣减上年剩余(补休) if vacation_report.dynamic_previous_year1 > 0: if vacation_report.dynamic_previous_year1 >= remaining_deduct: