Commit fe17a349 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Activation de la synchronisation du code rh de la table intervenant lors d'un...

Activation de la synchronisation du code rh de la table intervenant lors d'un renouvellement SIHAM (#63497)
parent 8edfa777
Loading
Loading
Loading
Loading
Loading
+4 −0
Changes for module/ExportRh/src/Controller/ExportRhController.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -278,6 +278,10 @@ class ExportRhController extends AbstractController
                        if ($this->exportRhService->haveToSyncSource()) {
                            $this->getServiceIntervenant()->updateSource($intervenant);
                        }
                        //On met à jour le code rh si l'option est activée
                        if ($this->exportRhService->haveToSyncCodeRh()) {
                            $this->getServiceIntervenant()->updateCodeRh($intervenant, $matricule);
                        }
                    } else {
                        $this->flashMessenger()->addErrorMessage('Un problème est survenu lors de la tentative de renouvellement de l\'intervenant');
                    }