Loading CHANGELOG.md +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ Objectif : Connecteur Export OSE => Logiciel RH * Nouvelles optimisations du modules CHARGES, au niveau des seuils et des calculs d'effectifs * Formule de calcul de l'Université Paris-Est Créteil * Nouvelle formule pour l'université d'Artois qui remplace la précédente (#40425) * La saisie calendaire ne bloque plus lorsqu'un nouveau volume horaire a des horaires de début et de fin identiques (#40037) # OSE 16 (14/09/2021) Loading module/Application/src/Application/Form/VolumeHoraire/SaisieCalendaire.php +7 −4 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Application\Form\VolumeHoraire; use Application\Constants; use Application\Entity\Db\MotifNonPaiement; use Application\Entity\Db\Periode; use Application\Entity\Db\TypeIntervention; Loading Loading @@ -272,11 +273,13 @@ class SaisieCalendaire extends AbstractForm implements EntityManagerAwareInterfa 'callback' => function ($value, $context = []) { if (!$context['horaire-debut'] && $context['horaire-fin']) return true; // pas d'horaires de saisis $horaireDebut = \DateTime::createFromFormat(Util::DATETIME_FORMAT, $context['horaire-debut']); $horaireFin = \DateTime::createFromFormat(Util::DATETIME_FORMAT, $context['horaire-fin']); $diff = $horaireFin->diff($horaireDebut); $horaireDebut = \DateTime::createFromFormat(Constants::DATETIME_FORMAT, $context['horaire-debut']); $horaireFin = \DateTime::createFromFormat(Constants::DATETIME_FORMAT, $context['horaire-fin']); $deb = $horaireDebut->getTimestamp(); $fin = $horaireFin->getTimestamp(); $diff = $fin - $deb; return $diff->invert == 1; return $diff >= 0; }, ], ]], Loading Loading
CHANGELOG.md +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ Objectif : Connecteur Export OSE => Logiciel RH * Nouvelles optimisations du modules CHARGES, au niveau des seuils et des calculs d'effectifs * Formule de calcul de l'Université Paris-Est Créteil * Nouvelle formule pour l'université d'Artois qui remplace la précédente (#40425) * La saisie calendaire ne bloque plus lorsqu'un nouveau volume horaire a des horaires de début et de fin identiques (#40037) # OSE 16 (14/09/2021) Loading
module/Application/src/Application/Form/VolumeHoraire/SaisieCalendaire.php +7 −4 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Application\Form\VolumeHoraire; use Application\Constants; use Application\Entity\Db\MotifNonPaiement; use Application\Entity\Db\Periode; use Application\Entity\Db\TypeIntervention; Loading Loading @@ -272,11 +273,13 @@ class SaisieCalendaire extends AbstractForm implements EntityManagerAwareInterfa 'callback' => function ($value, $context = []) { if (!$context['horaire-debut'] && $context['horaire-fin']) return true; // pas d'horaires de saisis $horaireDebut = \DateTime::createFromFormat(Util::DATETIME_FORMAT, $context['horaire-debut']); $horaireFin = \DateTime::createFromFormat(Util::DATETIME_FORMAT, $context['horaire-fin']); $diff = $horaireFin->diff($horaireDebut); $horaireDebut = \DateTime::createFromFormat(Constants::DATETIME_FORMAT, $context['horaire-debut']); $horaireFin = \DateTime::createFromFormat(Constants::DATETIME_FORMAT, $context['horaire-fin']); $deb = $horaireDebut->getTimestamp(); $fin = $horaireFin->getTimestamp(); $diff = $fin - $deb; return $diff->invert == 1; return $diff >= 0; }, ], ]], Loading