Commit 90b26fb6 authored by Florian Joriot's avatar Florian Joriot
Browse files

Correction probleme calcul de date fin de mission

parent da290d0e
Loading
Loading
Loading
Loading
Loading
+2 −2
Changes for module/Contrat/src/Tbl/Process/ContratProcess.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -1236,11 +1236,11 @@ class ContratProcess implements ProcessInterface
        $dateDebut = null;
        $dateFin   = null;
        foreach ($contrat->volumesHoraires as $vh) {
            if ($contrat->debutValidite == null || $dateDebut > $vh->dateDebutMission) {
            if ($dateDebut == null || $dateDebut > $vh->dateDebutMission) {
                $dateDebut = $vh->dateDebutMission;
            }

            if ($contrat->finValidite == null || $dateFin > $vh->dateFinMission) {
            if ($dateFin == null || $dateFin < $vh->dateFinMission) {
                $dateFin = $vh->dateFinMission;
            }
        }