Commit 30c21556 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction big suite changement du workflow : un MAJ un intervenant à la fois

parent e18f935c
Loading
Loading
Loading
Loading
+13 −12
Original line number Diff line number Diff line
@@ -52,7 +52,6 @@ class PaiementController extends AbstractController
    use EtatSortieServiceAwareTrait;



    /**
     * Initialisation des filtres Doctrine pour les historique.
     * Objectif : laisser passer les enregistrements passés en historique pour mettre en évidence ensuite les erreurs
@@ -505,7 +504,9 @@ class PaiementController extends AbstractController
            $intervenants = $this->getServiceIntervenant()->get(explode(',', $intervenants));
            try {
                $this->getServiceMiseEnPaiement()->mettreEnPaiement($structure, $intervenants, $periode, $dateMiseEnPaiement);
                $this->updateTableauxBord($intervenants);
                foreach ($intervenants as $intervenant) {
                    $this->updateTableauxBord($intervenant);
                }
            } catch (\Exception $e) {
                $errors[] = $e->getMessage();
            }
@@ -517,7 +518,7 @@ class PaiementController extends AbstractController


    /**
     * @param Intervenant|Intervenant[] $intervenant
     * @param Intervenant $intervenant
     */
    private function updateTableauxBord($intervenant)
    {