From 500d6ec34d40e1c658b8aa99470e2d1852a3c575 Mon Sep 17 00:00:00 2001 From: dbdbd9 Date: Wed, 18 Jun 2025 15:23:55 +0700 Subject: [PATCH] fix warnning on_leave_note_pay message --- .../Admin/app/Http/Controllers/TicketController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BACKEND/Modules/Admin/app/Http/Controllers/TicketController.php b/BACKEND/Modules/Admin/app/Http/Controllers/TicketController.php index 10b57f0..4d1bdbd 100644 --- a/BACKEND/Modules/Admin/app/Http/Controllers/TicketController.php +++ b/BACKEND/Modules/Admin/app/Http/Controllers/TicketController.php @@ -614,7 +614,7 @@ class TicketController extends Controller }) ->where('n_user_id', $user->id) ->where('n_year', $year) - ->where('n_month', "<=", $month) + // ->where('n_month', "<=", $month) ->where('n_reason', 'ONLEAVE') ->sum('categories.c_value'); } @@ -634,11 +634,11 @@ class TicketController extends Controller // } // Nếu là duyệt ticket thì sẽ cộng thêm số ngày phép còn lại của tháng hiện tại - if ($isAccept) { - if ($month >= $totalAllocated) { - $totalAllocated += $month - $totalAllocated; - } + // if ($isAccept) { + if ($month >= $totalAllocated) { + $totalAllocated += $month - $totalAllocated; } + // } // bên hàm duyệt ticket sẽ check lại để + 1 ngày trước job để đảm bảo đủ ngày phép } else {