Commit 03436c85 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Ajout de la date de clôture de service dans la page historique de l'intervenant

parent 47b7cda1
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -343,6 +343,21 @@ FROM volume_horaire vh
         LEFT JOIN motif_non_paiement mnp ON mnp.id = vh.motif_non_paiement_id
GROUP BY s.intervenant_id, ep.structure_id

UNION ALL

--Cloture de service
SELECT i.id                                                                                 intervenant_id,
       '6 - Services réalisés'                                                              categorie,
       'Clôture de service réalisé '													    label,
       MAX(v.histo_modification)                                                            histo_date,
       MAX(v.histo_modificateur_id)                                                         KEEP (dense_rank FIRST ORDER BY v.histo_creation  DESC)   histo_createur_id, MAX(u.display_name) KEEP (dense_rank FIRST ORDER BY v.histo_creation  DESC)    histo_user, 'glyphicon glyphicon-calendar' icon,
       5                                                                                    ordre
FROM validation  v
         JOIN intervenant i ON i.id = v.intervenant_id
         JOIN utilisateur u ON u.id = v.histo_createur_id
WHERE v.histo_destruction IS null
GROUP BY i.id

UNION ALL
--Mise en paiement
SELECT