Commit 22c18a73 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Oublis pour modif formule du Havre

parent 81e2b7ca
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -296,6 +296,7 @@ CREATE OR REPLACE PACKAGE BODY "OSE_FORMULE" AS
        vh.ponderation_service_compl,
        vh.service_statutaire,
        vh.heures,
        length, -- on ignore ensuite
        vh_horaire_debut,
        vh_horaire_fin,
        vh.type_intervention_code,
@@ -351,10 +352,12 @@ CREATE OR REPLACE PACKAGE BODY "OSE_FORMULE" AS
          WHEN 'TP' THEN COALESCE(fti.taux_tp_service_compl,2/3)
          WHEN 'AUTRE' THEN COALESCE(fti.taux_autre_service_compl,1)
          ELSE 1
        END taux_service_compl
        END taux_service_compl,
        tvh.code type_volume_horaire_code
      FROM
        formule_test_volume_horaire ftvh
        JOIN formule_test_intervenant fti ON fti.id = intervenant.id
        JOIN type_volume_horaire tvh ON tvh.id = fti.type_volume_horaire_id
      WHERE  ftvh.intervenant_test_id = intervenant.id
      ORDER BY ftvh.id
    ) LOOP
@@ -378,6 +381,7 @@ CREATE OR REPLACE PACKAGE BODY "OSE_FORMULE" AS
      volumes_horaires.items(length).structure_is_exterieur    := d.structure_code = '__EXTERIEUR__';
      volumes_horaires.items(length).service_statutaire        := d.service_statutaire = 1;
      volumes_horaires.items(length).heures                    := d.heures;
      volumes_horaires.items(length).type_volume_horaire_code  := d.type_volume_horaire_code;
      volumes_horaires.items(length).type_intervention_code    := CASE WHEN d.referentiel = 1 THEN NULL ELSE d.type_intervention_code END;
      volumes_horaires.items(length).structure_code            := CASE WHEN d.structure_code IN ('__EXTERIEUR__', '__UNIV__') THEN NULL ELSE d.structure_code END;
      volumes_horaires.items(length).taux_service_du           := d.taux_service_du;
+1 −2
Original line number Diff line number Diff line
CREATE OR REPLACE PACKAGE "OSE_FORMULE" AS
create or replace PACKAGE "OSE_FORMULE" AS

  TYPE t_intervenant IS RECORD (
    -- identifiants
@@ -8,7 +8,6 @@ CREATE OR REPLACE PACKAGE "OSE_FORMULE" AS
    etat_volume_horaire_id         NUMERIC,

    -- paramètres globaux
    type_volume_horaire_code       VARCHAR(15),
    heures_service_statutaire      FLOAT DEFAULT 0,
    heures_service_modifie         FLOAT DEFAULT 0,
    depassement_service_du_sans_hc BOOLEAN DEFAULT FALSE,