Commit 5f9913a7 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Refactor completude au profit de TBL_DOSSIER.php et adaptation...

Refactor completude au profit de TBL_DOSSIER.php et adaptation IntervenantDossierController.php et DossierService.php
parent 222cec2a
Loading
Loading
Loading
Loading
−21

File deleted.

−7
Changes for admin/migration/MigrationDossier.php: 0 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -172,13 +172,6 @@ class MigrationDossier extends AbstractMigration
        $console->println("Nombre de dossiers migrés : " . $nbDossierMigration);
        //Mise à jour sequence
        $bdd->majSequences($this->manager->getRef());
        //Reste à faire de recalculer la complétude des dossiers 2019 et 2020 au minimum
        $console->println("Recalcul de la complétude des dossiers pour l'année 2019");
        $annee = '2019';
        $oa->exec("calcul-completude-dossier --annee=$annee");
        $console->println("Recalcul de la complétude des dossiers pour l'année 2020");
        $annee = '2020';
        $oa->exec("calcul-completude-dossier --annee=$annee");
        //Recalcule le tableau de bord des dossier
        $console->println("Calcul du tableau de bord TBL_DOSSIER");
        $bdd->exec('BEGIN unicaen_tbl.calculer(\'dossier\'); END;');
−12
Changes for data/ddl/table/INTERVENANT_DOSSIER.php: 0 added lines, 12 removed lines.
Original line number Diff line number Diff line
@@ -213,18 +213,6 @@ return [
            'position'    => 17,
            'commentaire' => NULL,
        ],
        'COMPLETUDE'               => [
            'name'        => 'COMPLETUDE',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 43,
            'commentaire' => 'Etat avancement du dossier',
        ],
        'DATE_NAISSANCE'           => [
            'name'        => 'DATE_NAISSANCE',
            'type'        => 'date',
+108 −12
Changes for data/ddl/table/TBL_DOSSIER.php: 108 added lines, 12 removed lines.
Original line number Diff line number Diff line
@@ -21,18 +21,6 @@ return [
            'position'    => 2,
            'commentaire' => NULL,
        ],
        'COMPLETUDE'          => [
            'name'        => 'COMPLETUDE',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 7,
            'commentaire' => NULL,
        ],
        'DOSSIER_ID'          => [
            'name'        => 'DOSSIER_ID',
            'type'        => 'int',
@@ -93,6 +81,114 @@ return [
            'position'    => 6,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_IDENTITE'          => [
            'name'        => 'COMPLETUDE_IDENTITE',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => 0,
            'position'    => 7,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_IDENTITE_COMP'          => [
            'name'        => 'COMPLETUDE_IDENTITE_COMP',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => 0,
            'position'    => 8,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_CONTACT'          => [
            'name'        => 'COMPLETUDE_CONTACT',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => 0,
            'position'    => 9,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_ADRESSE'          => [
            'name'        => 'COMPLETUDE_ADRESSE',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => 0,
            'position'    => 10,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_INSEE'          => [
            'name'        => 'COMPLETUDE_INSEE',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => 0,
            'position'    => 11,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_IBAN'          => [
            'name'        => 'COMPLETUDE_IBAN',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => 0,
            'position'    => 12,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_EMPLOYEUR'          => [
            'name'        => 'COMPLETUDE_EMPLOYEUR',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => 0,
            'position'    => 13,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_AUTRES'          => [
            'name'        => 'COMPLETUDE_AUTRES',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => 0,
            'position'    => 14,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_STATUT'          => [
            'name'        => 'COMPLETUDE_STATUT',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => 0,
            'position'    => 15,
            'commentaire' => NULL,
        ],
    ],
];

+10 −1
Changes for data/ddl/view/V_INDICATEUR_410.sql: 10 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -9,6 +9,15 @@ FROM
  JOIN intervenant i ON i.id = d.intervenant_id
WHERE
  d.dossier_id IS NOT NULL
  AND d.completude = 1
  /*Complétude des différents bloc dossier*/
  AND d.completude_identite = 1
  AND d.completude_identite_comp = 1
  AND d.completude_contact = 1
  AND d.completude_adresse = 1
  AND d.completude_insee = 1
  AND d.completude_iban = 1
  AND d.completude_employeur = 1
  AND d.completude_autres = 1
  AND d.completude_statut = 1
  AND d.validation_id IS NULL
  AND d.peut_saisir_dossier = 1
 No newline at end of file
Loading