Commit 50f31131 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

distinction prévu/réalise pour le service et le référentiel

parent d33bff18
Loading
Loading
Loading
Loading
+6 −2
Changes for data/ddl/view/V_TBL_SERVICE.sql: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -44,7 +44,10 @@ WHERE
SELECT
  i.annee_id                                                             annee_id,
  i.id                                                                   intervenant_id,
  si.service                                                             actif,
  CASE WHEN t.type_volume_horaire_code = 'PREVU'
    THEN si.service_prevu
    ELSE si.service_realise
  END                                                                    actif,
  t.service_id                                                           service_id,
  t.element_pedagogique_id                                               element_pedagogique_id,
  ti.id                                                                  type_intervenant_id,
@@ -78,7 +81,8 @@ GROUP BY
  i.structure_id,
  ti.id,
  ti.code,
  si.service,
  si.service_prevu,
  si.service_realise,
  t.element_pedagogique_id,
  t.service_id,
  t.element_pedagogique_periode_id,