Commit d87dcaaf authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Merge branch 'b19' of https://git.unicaen.fr/open-source/OSE into b19

parents 22c18a73 b8363d33
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ CREATE OR REPLACE FORCE VIEW V_INDICATEUR_910 AS
SELECT
  w.intervenant_id,
  w.structure_id,
  Max(v.HISTO_CREATION) AS "Date de modification"
  Max(vh.HISTO_MODIFICATION) AS "Date de modification"
FROM
  tbl_workflow w
  LEFT JOIN type_volume_horaire tvh ON tvh.code = 'REALISE'
+2 −3
Original line number Diff line number Diff line
CREATE OR REPLACE FORCE VIEW V_INDICATEUR_920 AS
SELECT DISTINCT
SELECT
  w.intervenant_id,
  w.structure_id,
  Max(v.HISTO_CREATION) AS "Date de modification"
  Max(vh.HISTO_MODIFICATION) AS "Date de modification"
FROM
  tbl_workflow w
  LEFT JOIN type_volume_horaire tvh ON tvh.code = 'REALISE'
@@ -13,6 +13,5 @@ WHERE
  AND w.type_intervenant_code = 'P'
  AND w.atteignable = 1
  AND w.objectif > w.realisation
  AND (vhr.TYPE_VOLUME_HORAIRE_ID = tvh.id OR vh.TYPE_VOLUME_HORAIRE_ID = tvh.id)
GROUP BY
  w.intervenant_id, w.structure_id
 No newline at end of file