From cd9c01cdeea6879fca4ec2c2174f3359cc383a13 Mon Sep 17 00:00:00 2001 From: Truong Vo <41848815+vmtruong301296@users.noreply.github.com> Date: Mon, 16 Jun 2025 13:34:41 +0700 Subject: [PATCH] fix --- BACKEND/Modules/Admin/app/Http/Controllers/TicketController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BACKEND/Modules/Admin/app/Http/Controllers/TicketController.php b/BACKEND/Modules/Admin/app/Http/Controllers/TicketController.php index 7fd2542..75ea608 100644 --- a/BACKEND/Modules/Admin/app/Http/Controllers/TicketController.php +++ b/BACKEND/Modules/Admin/app/Http/Controllers/TicketController.php @@ -633,7 +633,7 @@ class TicketController extends Controller ) { $hasInsufficientDays = true; $month_data_status = 'exceed_max_days'; - $daysNotEnough = $monthData['days_requested'] - $remainingDaysInMonthRemaining; + $daysNotEnough = $monthData['days_requested'] - $maxDaysPerMonth; $monthMessage = "* Theo quy định ngày phép tối đa mỗi tháng là {$maxDaysPerMonth} ngày. \nTháng {$monthData['month']}/{$monthData['year']}: \n - Bạn đã sử dụng {$usedDaysInMonth} ngày phép, còn lại {$remainingDaysInMonthRemaining} ngày phép.\n - Bạn sẽ sử dụng {$maxDaysPerMonth} ngày phép và {$daysNotEnough} ngày không phép."; $errorMessage .= $errorMessage ? "\n\n" . $monthMessage : $monthMessage; $days_will_use = $maxDaysPerMonth;