Commit 884f3d8b authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction bug calcul HETD

parent 46064bfe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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

+80 B (180 KiB)

File changed.

No diff preview for this file type.

+9 −2
Original line number Diff line number Diff line
@@ -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;
            }