Commit 0bcda28d authored by Florian Joriot's avatar Florian Joriot
Browse files

Mise en place des champs autres

parent 714f9cae
Loading
Loading
Loading
Loading
Loading
+4
Changes for CHANGELOG.md: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@ OSE [24.20]

* Optimisation générale de l'application

* Champs autres : les disciplines et les statuts disposent désormais de 5 champs "autres" (AUTRE_1 à AUTRE_5), sur le même modèle que les intervenants, étapes, éléments pédagogiques, types de formation, fonctions référentielles, motifs de modification de service dû et structures

## Améliorations

* La tolérance de dépassement de plafond est passée de 0,05 à 0,02 (#55890)
@@ -37,6 +39,8 @@ OSE [24.20]

* :warning: **Attention** : Le workflow a été réinitialisé, vous devrez le réadpter à vos besoins (Administration/Workflow).

* :warning: Les colonnes `CODES_CORRESP_1` à `CODES_CORRESP_4` des tables `DISCIPLINE` et `STATUT` sont renommées en `AUTRE_1` à `AUTRE_4` (une colonne `AUTRE_5` est ajoutée). Les données et les libellés paramétrés sont conservés par la mise à jour, mais **vos requêtes personnalisées** qui y font référence (vues source d'import `SRC_*`, `MV_INTERVENANT`, états de sortie, extractions...) doivent être adaptées.

* Compatible avec les versions 8.3 et 8.4 de PHP. Vous pourrez mettre à jour OSE, puis monter en PHP8.4 après.

* Pensez à installer l'extention php calendar si ce n'est pas déjà le cas.
+28 −16
Changes for data/ddl/table/DISCIPLINE.php: 28 added lines, 16 removed lines.
Original line number Diff line number Diff line
@@ -9,8 +9,8 @@ return [
    'commentaire' => NULL,
    'sequence'    => 'DISCIPLINE_ID_SEQ',
    'columns'     => [
        'CODES_CORRESP_1'       => [
            'name'        => 'CODES_CORRESP_1',
        'AUTRE_1'               => [
            'name'        => 'AUTRE_1',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 1000,
@@ -21,8 +21,8 @@ return [
            'position'    => 4,
            'commentaire' => NULL,
        ],
        'CODES_CORRESP_2'       => [
            'name'        => 'CODES_CORRESP_2',
        'AUTRE_2'               => [
            'name'        => 'AUTRE_2',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 1000,
@@ -33,8 +33,8 @@ return [
            'position'    => 5,
            'commentaire' => NULL,
        ],
        'CODES_CORRESP_3'       => [
            'name'        => 'CODES_CORRESP_3',
        'AUTRE_3'               => [
            'name'        => 'AUTRE_3',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 1000,
@@ -45,8 +45,8 @@ return [
            'position'    => 6,
            'commentaire' => NULL,
        ],
        'CODES_CORRESP_4'       => [
            'name'        => 'CODES_CORRESP_4',
        'AUTRE_4'               => [
            'name'        => 'AUTRE_4',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 1000,
@@ -57,6 +57,18 @@ return [
            'position'    => 7,
            'commentaire' => NULL,
        ],
        'AUTRE_5'               => [
            'name'        => 'AUTRE_5',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 1000,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 8,
            'commentaire' => NULL,
        ],
        'HISTO_CREATEUR_ID'     => [
            'name'        => 'HISTO_CREATEUR_ID',
            'type'        => 'int',
@@ -66,7 +78,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 11,
            'position'    => 12,
            'commentaire' => NULL,
        ],
        'HISTO_CREATION'        => [
@@ -78,7 +90,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => 'SYSDATE',
            'position'    => 10,
            'position'    => 11,
            'commentaire' => NULL,
        ],
        'HISTO_DESTRUCTEUR_ID'  => [
@@ -90,7 +102,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 15,
            'position'    => 16,
            'commentaire' => NULL,
        ],
        'HISTO_DESTRUCTION'     => [
@@ -102,7 +114,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 14,
            'position'    => 15,
            'commentaire' => NULL,
        ],
        'HISTO_MODIFICATEUR_ID' => [
@@ -114,7 +126,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 13,
            'position'    => 14,
            'commentaire' => NULL,
        ],
        'HISTO_MODIFICATION'    => [
@@ -126,7 +138,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => 'SYSDATE',
            'position'    => 12,
            'position'    => 13,
            'commentaire' => NULL,
        ],
        'ID'                    => [
@@ -174,7 +186,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 9,
            'position'    => 10,
            'commentaire' => NULL,
        ],
        'SOURCE_ID'             => [
@@ -186,7 +198,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 8,
            'position'    => 9,
            'commentaire' => NULL,
        ],
    ],
+56 −44
Changes for data/ddl/table/STATUT.php: 56 added lines, 44 removed lines.
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 90,
            'position'    => 91,
            'commentaire' => NULL,
        ],
        'CLOTURE'                        => [
@@ -57,8 +57,8 @@ return [
            'position'    => 2,
            'commentaire' => NULL,
        ],
        'CODES_CORRESP_1'                => [
            'name'        => 'CODES_CORRESP_1',
        'AUTRE_1'                        => [
            'name'        => 'AUTRE_1',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 1000,
@@ -69,8 +69,8 @@ return [
            'position'    => 67,
            'commentaire' => NULL,
        ],
        'CODES_CORRESP_2'                => [
            'name'        => 'CODES_CORRESP_2',
        'AUTRE_2'                        => [
            'name'        => 'AUTRE_2',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 1000,
@@ -81,8 +81,8 @@ return [
            'position'    => 68,
            'commentaire' => NULL,
        ],
        'CODES_CORRESP_3'                => [
            'name'        => 'CODES_CORRESP_3',
        'AUTRE_3'                        => [
            'name'        => 'AUTRE_3',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 1000,
@@ -93,8 +93,8 @@ return [
            'position'    => 69,
            'commentaire' => NULL,
        ],
        'CODES_CORRESP_4'                => [
            'name'        => 'CODES_CORRESP_4',
        'AUTRE_4'                        => [
            'name'        => 'AUTRE_4',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 1000,
@@ -105,6 +105,18 @@ return [
            'position'    => 70,
            'commentaire' => NULL,
        ],
        'AUTRE_5'                        => [
            'name'        => 'AUTRE_5',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 1000,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 71,
            'commentaire' => NULL,
        ],
        'CODE_INDEMNITE'                 => [
            'name'        => 'CODE_INDEMNITE',
            'type'        => 'string',
@@ -114,7 +126,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 96,
            'position'    => 97,
            'commentaire' => NULL,
        ],
        'CODE_INDEMNITE_PRIME'           => [
@@ -126,7 +138,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 97,
            'position'    => 98,
            'commentaire' => NULL,
        ],
        'CONSEIL_ACA'                    => [
@@ -234,7 +246,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 80,
            'position'    => 81,
            'commentaire' => NULL,
        ],
        'CONTRAT_GENERATION'             => [
@@ -246,7 +258,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 82,
            'position'    => 83,
            'commentaire' => NULL,
        ],
        'CONTRAT_VISUALISATION'          => [
@@ -546,7 +558,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 100,
            'position'    => 101,
            'commentaire' => NULL,
        ],
        'DOSSIER_IDENTITE_COMP'          => [
@@ -594,7 +606,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 104,
            'position'    => 105,
            'commentaire' => NULL,
        ],
        'DOSSIER_STATUT'                 => [
@@ -606,7 +618,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 86,
            'position'    => 87,
            'commentaire' => NULL,
        ],
        'DOSSIER_TEL_PERSO'              => [
@@ -642,7 +654,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 105,
            'position'    => 106,
            'commentaire' => NULL,
        ],
        'FORMULE_VISUALISATION'          => [
@@ -666,7 +678,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 72,
            'position'    => 73,
            'commentaire' => NULL,
        ],
        'HISTO_CREATION'                 => [
@@ -678,7 +690,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => 'SYSDATE',
            'position'    => 71,
            'position'    => 72,
            'commentaire' => NULL,
        ],
        'HISTO_DESTRUCTEUR_ID'           => [
@@ -690,7 +702,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 76,
            'position'    => 77,
            'commentaire' => NULL,
        ],
        'HISTO_DESTRUCTION'              => [
@@ -702,7 +714,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 75,
            'position'    => 76,
            'commentaire' => NULL,
        ],
        'HISTO_MODIFICATEUR_ID'          => [
@@ -714,7 +726,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 74,
            'position'    => 75,
            'commentaire' => NULL,
        ],
        'HISTO_MODIFICATION'             => [
@@ -726,7 +738,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => 'SYSDATE',
            'position'    => 73,
            'position'    => 74,
            'commentaire' => NULL,
        ],
        'ID'                             => [
@@ -762,7 +774,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 83,
            'position'    => 84,
            'commentaire' => NULL,
        ],
        'MISSION_DECRET'                 => [
@@ -774,7 +786,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 101,
            'position'    => 102,
            'commentaire' => NULL,
        ],
        'MISSION_EDITION'                => [
@@ -786,7 +798,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 89,
            'position'    => 90,
            'commentaire' => NULL,
        ],
        'MISSION_INDEMNITEES'            => [
@@ -798,7 +810,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '1',
            'position'    => 102,
            'position'    => 103,
            'commentaire' => NULL,
        ],
        'MISSION_REALISE_EDITION'        => [
@@ -810,7 +822,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 84,
            'position'    => 85,
            'commentaire' => NULL,
        ],
        'MISSION_VISUALISATION'          => [
@@ -822,7 +834,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '1',
            'position'    => 88,
            'position'    => 89,
            'commentaire' => NULL,
        ],
        'MODE_CALCUL'                    => [
@@ -834,7 +846,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 94,
            'position'    => 95,
            'commentaire' => NULL,
        ],
        'MODE_CALCUL_PRIME'              => [
@@ -846,7 +858,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 95,
            'position'    => 96,
            'commentaire' => NULL,
        ],
        'MODE_ENSEIGNEMENT_PREVISIONNEL' => [
@@ -858,7 +870,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '\'semestriel\'',
            'position'    => 91,
            'position'    => 92,
            'commentaire' => NULL,
        ],
        'MODE_ENSEIGNEMENT_REALISE'      => [
@@ -870,7 +882,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '\'semestriel\'',
            'position'    => 92,
            'position'    => 93,
            'commentaire' => NULL,
        ],
        'MODIF_SERVICE_DU'               => [
@@ -918,7 +930,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 87,
            'position'    => 88,
            'commentaire' => NULL,
        ],
        'ORDRE'                          => [
@@ -942,7 +954,7 @@ return [
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '1',
            'position'    => 93,
            'position'    => 94,
            'commentaire' => NULL,
        ],
        'PAIEMENT_VISUALISATION'         => [
@@ -966,7 +978,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '1',
            'position'    => 103,
            'position'    => 104,
            'commentaire' => NULL,
        ],
        'PJ_ARCHIVAGE'                   => [
@@ -1074,7 +1086,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 77,
            'position'    => 78,
            'commentaire' => NULL,
        ],
        'REFERENTIEL_REALISE_EDITION'    => [
@@ -1086,7 +1098,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '1',
            'position'    => 78,
            'position'    => 79,
            'commentaire' => NULL,
        ],
        'REFERENTIEL_REALISE_VISU'       => [
@@ -1098,7 +1110,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '1',
            'position'    => 79,
            'position'    => 80,
            'commentaire' => NULL,
        ],
        'SERVICE_EXTERIEUR'              => [
@@ -1218,7 +1230,7 @@ return [
            'precision'   => 126,
            'nullable'    => FALSE,
            'default'     => '1',
            'position'    => 81,
            'position'    => 82,
            'commentaire' => NULL,
        ],
        'TAUX_REMU_ID'                   => [
@@ -1230,7 +1242,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 85,
            'position'    => 86,
            'commentaire' => NULL,
        ],
        'TYPE_INTERVENANT_ID'            => [
@@ -1254,7 +1266,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 98,
            'position'    => 99,
            'commentaire' => NULL,
        ],
        'TYPE_PAIE_PRIME'                => [
@@ -1266,7 +1278,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 99,
            'position'    => 100,
            'commentaire' => NULL,
        ],
        'TAG_VISU'                => [
@@ -1278,7 +1290,7 @@ return [
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 105,
            'position'    => 106,
            'commentaire' => NULL,
        ],
    ],
+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
@@ -64,7 +64,7 @@ SELECT
  -- Données concernant l'intervenant
  si.libelle                                                                            "statut",
  CASE
    WHEN LOWER(si.codes_corresp_2) = 'oui' THEN
    WHEN LOWER(si.autre_2) = 'oui' THEN
      'd''agent temporaire vacataire'
    ELSE
      'de chargé' || CASE WHEN civ.sexe = 'F' THEN 'e' ELSE '' END || ' d''enseignement vacataire'
+10 −8
Changes for data/ddl_columns_pos.php: 10 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -259,10 +259,11 @@ return [
        'ID',
        'LIBELLE_COURT',
        'LIBELLE_LONG',
        'CODES_CORRESP_1',
        'CODES_CORRESP_2',
        'CODES_CORRESP_3',
        'CODES_CORRESP_4',
        'AUTRE_1',
        'AUTRE_2',
        'AUTRE_3',
        'AUTRE_4',
        'AUTRE_5',
        'SOURCE_ID',
        'SOURCE_CODE',
        'HISTO_CREATION',
@@ -1352,10 +1353,11 @@ return [
        'PAIEMENT_VISUALISATION',
        'MOTIF_NON_PAIEMENT',
        'FORMULE_VISUALISATION',
        'CODES_CORRESP_1',
        'CODES_CORRESP_2',
        'CODES_CORRESP_3',
        'CODES_CORRESP_4',
        'AUTRE_1',
        'AUTRE_2',
        'AUTRE_3',
        'AUTRE_4',
        'AUTRE_5',
        'HISTO_CREATION',
        'HISTO_CREATEUR_ID',
        'HISTO_MODIFICATION',
Loading