truong-leave-day #124
			
				
			
		
		
		
	| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue