truong-leave-day #124

Merged
vincent.vo merged 5 commits from truong-leave-day into dev 2025-06-16 16:34:56 +10:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit cd9c01cdee - Show all commits

View File

@ -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;