Commit 87435402 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Ajout du nombre d'heures sur le contrat dans la légende des types d'intervention autres

parent 098de7f6
Loading
Loading
Loading
Loading
+3 −3
Changes for data/ddl/view/V_CONTRAT_SERVICES.sql: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -28,17 +28,17 @@ servicesAutres AS (
		FROM (
			SELECT DISTINCT
			  c.id                                             						contrat_id,
			  ti.libelle                                                            type_intervention_libelle
			  ti.libelle || ' (' || SUM(vh.heures) || ' h)'                           type_intervention_libelle
   			FROM
			            contrat                  c
			       JOIN volume_horaire          vh ON vh.contrat_id = c.id AND vh.histo_destruction IS NULL
			       JOIN type_intervention       ti ON ti.id = vh.type_intervention_id
			WHERE ti.code NOT IN ('CM','TD','TP')
			GROUP BY
			c.id, ti.libelle
		) t
		GROUP by
		t.contrat_id


		)
SELECT