Commit 5662ef40 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Adaptation export service csv par rapport au tag

parent c0263f1b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -60,6 +60,8 @@ $dateExtraction = new \DateTime();
foreach ($data as $d) {
    $sid = $d['SERVICE_ID'] ? $d['SERVICE_ID'] . '_' . $d['PERIODE_ID'] : $d['ID'];
    $sid .= '_' . $d['MOTIF_NON_PAIEMENT_ID'];
    $sid .= '_' . $d['TAG_ID'];

    $ds = [
        '__total__'                 => (float)$d['HEURES'] + (float)$d['HEURES_NON_PAYEES'] + (float)$d['HEURES_REF'] + (float)$d['TOTAL'],
        'type-etat'                 => $d['TYPE_ETAT'],
@@ -99,6 +101,7 @@ foreach ($data as $d) {

        'periode-libelle'              => $d['PERIODE_LIBELLE'],
        'heures-non-payees-libelle'    => $d['MOTIF_NON_PAIEMENT'],
        'tag'                          => $d['TAG'],

        // types d'intervention traités en aval
        'heures-ref'                   => (float)$d['HEURES_REF'],
@@ -200,6 +203,8 @@ $head = [
    'element-source-libelle'        => 'Source enseignement',
    'periode-libelle'               => 'Période',
    'heures-non-payees-libelle'     => 'Motif de non paiement',
    'tag'                           => 'Tags',

];
uasort($typesIntervention, function ($ti1, $ti2) {
    return $ti1->getOrdre() - $ti2->getOrdre();