Commit 59b2b283 authored by Florian Joriot's avatar Florian Joriot
Browse files

Correction tbl

parent e22c8862
Loading
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -411,10 +411,10 @@ WHERE
        foreach ($avenantNecessaireDate as $avenant) {

            $newAvenant                      = [];
            $newAvenant['INTERVENANT_ID']    = (int)($avenant['INTERVENANT_ID'] ?? NULL);
            $newAvenant['ANNEE_ID']          = (int)($avenant['ANNEE_ID'] ?? NULL);
            $newAvenant['STRUCTURE_ID']      = (int)($avenant['STRUCTURE_ID'] ?? NULL);
            $newAvenant['CONTRAT_PARENT_ID'] = (int)($avenant['CONTRAT_PARENT_ID'] ?? NULL);
            $newAvenant['INTERVENANT_ID']    = $avenant['INTERVENANT_ID'] ? (int)$avenant['INTERVENANT_ID'] : NULL;
            $newAvenant['ANNEE_ID']          = $avenant['ANNEE_ID'] ? (int)$avenant['ANNEE_ID'] : NULL;
            $newAvenant['STRUCTURE_ID']      = $avenant['STRUCTURE_ID'] ? (int)$avenant['STRUCTURE_ID'] : NULL;
            $newAvenant['CONTRAT_PARENT_ID'] = $avenant['CONTRAT_PARENT_ID'] ? (int)$avenant['CONTRAT_PARENT_ID'] : NULL;

            $newAvenant['UUID'] = 'avenant_' . $newAvenant['INTERVENANT_ID'] . '_' . $newAvenant['CONTRAT_PARENT_ID'];