Commit 2cd77d7d authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction saisi "Hors établissement" avec un plafond activé (#66400)

parent 65ce2463
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -342,7 +342,9 @@ class PlafondService extends AbstractEntityService
                $libVal = "entity1.code || ' ' || entity2.code ";
                $groupBy = 'entity1.code, entity2.code';
                foreach($entities as $entity){
                    if ($entity->getService()->getElementPedagogique()) {
                        $filters['pd.ELEMENT_PEDAGOGIQUE_ID'] = (int)$entity->getService()->getElementPedagogique()?->getId();
                    }
                    $filters['pd.INTERVENANT_ID']         = (int)$entity->getService()->getIntervenant()->getId();
                    $filters['pd.TYPE_INTERVENTION_ID']   = (int)$entity->getTypeIntervention()->getId();
                }