diff --git a/BACKEND/app/Jobs/AddMonthlyLeaveDays.php b/BACKEND/app/Jobs/AddMonthlyLeaveDays.php index e70192b..c63d683 100644 --- a/BACKEND/app/Jobs/AddMonthlyLeaveDays.php +++ b/BACKEND/app/Jobs/AddMonthlyLeaveDays.php @@ -46,7 +46,7 @@ class AddMonthlyLeaveDays implements ShouldQueue ->where('ld_year', $this->year) ->first(); - if (!$leaveDay) { + if (!$leaveDay && $this->month > 1) { // Nếu chưa có dữ liệu năm hiện tại, tạo mới // Số ngày phép bằng với tháng hiện tại $leaveDay = new LeaveDays([