Commit 510cdd77 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Modification des V_CONTRAT_SERVICES.sql et V_CONTRAT_MAIN.sql pour ventiler...

Modification des V_CONTRAT_SERVICES.sql et V_CONTRAT_MAIN.sql pour ventiler les heures par types d'intervention
parent f6ee5b33
Loading
Loading
Loading
Loading
+1 −1
Changes for data/ddl/view/V_CONTRAT_MAIN.sql: 1 added line, 1 removed line.
Original line number Diff line number Diff line
CREATE OR REPLACE FORCE VIEW V_CONTRAT_MAIN AS
WITH hs AS (
  SELECT contrat_id, sum(heures) "serviceTotal", max(libelleAutres) "libelleAutres" FROM V_CONTRAT_SERVICES GROUP BY contrat_id
  SELECT contrat_id, sum(heures) "serviceTotal", max("libelleAutres") "libelleAutres" FROM V_CONTRAT_SERVICES GROUP BY contrat_id
)
SELECT
  ct.annee_id,
+1
Changes for data/ddl/view/V_CONTRAT_SERVICES.sql: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -61,3 +61,4 @@ SELECT
  s."serviceCode",
  s."serviceLibelle"