Ajout des horaires de travail en paramètres .env
This commit is contained in:
@@ -147,8 +147,10 @@ class TimerController extends AbstractController
|
||||
|
||||
$officeworkstart = clone $start;
|
||||
$officeworkend = clone $officeworkstart;
|
||||
$officeworkstart->SetTime(9,0,0);
|
||||
$officeworkend->SetTime(17,30,0);
|
||||
$uStart = explode(":",$this->getParameter('officeHourStart'));
|
||||
$uEnd = explode(":",$this->getParameter('officeHourEnd'));
|
||||
$officeworkstart->SetTime(intval($uStart[0]),intval($uStart[1]),0);
|
||||
$officeworkend->SetTime(intval($uEnd[0]),intval($uEnd[1]),0);
|
||||
if ($start < $officeworkstart || $end > $officeworkend) {
|
||||
$data->setAdditionalHour(true);
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user