fix
This commit is contained in:
parent
2c8bb92775
commit
cd9c01cdee
|
|
@ -633,7 +633,7 @@ class TicketController extends Controller
|
||||||
) {
|
) {
|
||||||
$hasInsufficientDays = true;
|
$hasInsufficientDays = true;
|
||||||
$month_data_status = 'exceed_max_days';
|
$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.";
|
$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;
|
$errorMessage .= $errorMessage ? "\n\n" . $monthMessage : $monthMessage;
|
||||||
$days_will_use = $maxDaysPerMonth;
|
$days_will_use = $maxDaysPerMonth;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue