Commit 06984a41 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction du lien vers la fiche intervenant dans le menu service (#38166)

parent 70bd2c88
......@@ -228,7 +228,7 @@ SELECT
tvh.libelle || ' ' || evh.libelle type_etat,
his.histo_modification service_date_modification,
i.source_code intervenant_code,
i.code intervenant_code,
i.nom_usuel || ' ' || i.prenom intervenant_nom,
i.date_naissance intervenant_date_naissance,
si.libelle intervenant_statut_libelle,
......
......@@ -888,6 +888,7 @@ class ServiceService extends AbstractEntityService
} else {
$sid = $d['SERVICE_ID'] ? $d['SERVICE_ID'] . '_' . $d['PERIODE_ID'] : $d['ID'];
}
$ds = [
'__total__' => (float)$d['HEURES'] + (float)$d['HEURES_NON_PAYEES'] + (float)$d['HEURES_REF'] + (float)$d['TOTAL'],
'type-etat' => $d['TYPE_ETAT'],
......@@ -896,6 +897,7 @@ class ServiceService extends AbstractEntityService
'annee-libelle' => (string)$annee,
'intervenant-code' => $d['INTERVENANT_CODE'],
'intervenant-id' => $d['INTERVENANT_ID'],
'intervenant-nom' => $d['INTERVENANT_NOM'],
'intervenant-date-naissance' => $d['INTERVENANT_DATE_NAISSANCE'],
'intervenant-statut-libelle' => $d['INTERVENANT_STATUT_LIBELLE'],
......@@ -1000,6 +1002,7 @@ class ServiceService extends AbstractEntityService
'service-date-modification' => 'Date de modif. du service',
'intervenant-code' => 'Code intervenant',
'intervenant-id' => 'Id intervenant',
'intervenant-nom' => 'Intervenant',
'intervenant-date-naissance' => 'Date de naissance',
'intervenant-statut-libelle' => 'Statut intervenant',
......
......@@ -115,7 +115,7 @@ class Resume extends AbstractViewHelper
$intervenantPermanent = $line['intervenant-type-code'] === \Application\Entity\Db\TypeIntervenant::CODE_PERMANENT;
$res .= '<tr>' . "\n";
$url = $this->getView()->url('intervenant/services', ['intervenant' => $line['intervenant-code']]);
$url = $this->getView()->url('intervenant/services', ['intervenant' => $line['intervenant-id']]);
$res .= '<td><a href="' . $url . '">' . strtoupper($line['intervenant-nom']) . '</a></td>' . "\n";
$totaux['intervenant']++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment