fix ngày phép

This commit is contained in:
Truong Vo 2026-01-05 08:20:01 +07:00
parent a0bfb19a34
commit 8f30081e55
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class AddMonthlyLeaveDays implements ShouldQueue
->where('ld_year', $this->year) ->where('ld_year', $this->year)
->first(); ->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 // 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 // Số ngày phép bằng với tháng hiện tại
$leaveDay = new LeaveDays([ $leaveDay = new LeaveDays([