Skip to content
Snippets Groups Projects
Commit 884f3d8b authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction bug calcul HETD

parent 46064bfe
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,8 @@ author: Laurent Lécluse - DSI - Unicaen
## Corrections de bugs
Le modèle de contrat est désormais téléchargeable depuis l'interface d'administration.
* Le modèle de contrat est désormais téléchargeable depuis l'interface d'administration.
* Un bug affectant l'affichage de la page "Calcul HETD" dans certains cas est résolu.
#OSE 7.0.2
......
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -373,7 +373,14 @@ class IntervenantController extends AbstractController
];
}
$typesIntervention[$fvh->getTypeIntervention()->getId()]['heures'] += $fvh->getHeures();
$hetd = $fvh->getVolumeHoraire()->getFormuleResultatVolumeHoraire()->first()->getTotal();
$hetd = 0;
if ($frvh = $fvh->getVolumeHoraire()->getFormuleResultatVolumeHoraire()) {
if ($frvhf = $frvh->first()) {
$hetd = $frvhf->getTotal();
}
}
$typesIntervention[$fvh->getTypeIntervention()->getId()]['hetd'] += $hetd;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment