Commit 4caeed2f authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction pour contractualisation uniquement du référentiel

parent 6e1d168e
Loading
Loading
Loading
Loading
+3 −1
Changes for module/Contrat/view/contrat/contrat/partial/contrat-heures.phtml: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -40,12 +40,14 @@ foreach ($vhs as $vh) {
                $referentiels[$frId]           = [
                        'fonctionLibelle' => $vh->getServiceReferentiel()->getFonctionReferentiel()->getLibelleLong(),
                        'fonctionCode'    => $vh->getServiceReferentiel()->getFonctionReferentiel()->getCode(),
                        'heures'          => 0.0,
                        'heures'          => $vh->getHeures()
                ];
                if (array_key_exists('autres', $referentiels[$frId])) {
                    $referentiels[$frId]['autres'] += $vh->getAutres();
                }
            }
        }
    }

    if (!empty($vh->getService())) {
        if (!empty($vh->getService()->getElementPedagogique())) {