Commit ec96ea1e authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Ajout d'indicateurs (231 et 241) pour les permanents et les vacataires pour...

Ajout d'indicateurs (231 et 241) pour les permanents et les vacataires pour gérer les pièces justificatives facultatives (#62574)
parent 413ecb64
Loading
Loading
Loading
Loading
Loading
+21 −0
Changes for data/ddl/view/V_INDICATEUR_231.sql: 21 added lines, 0 removed lines.
Original line number Diff line number Diff line
CREATE OR REPLACE FORCE VIEW V_INDICATEUR_231 AS
SELECT DISTINCT
  MAX(i.NOM_USUEL),
  MAX(i.PRENOM),
  w.intervenant_id,
  i.structure_id,
  MAX(pj.histo_modification) AS "Date de modification"
FROM
  tbl_workflow w
  JOIN tbl_workflow wc ON wc.intervenant_id = w.intervenant_id
  JOIN intervenant i ON i.id = w.intervenant_id AND i.histo_destruction IS NULL
  JOIN tbl_piece_jointe tpj ON i.id = tpj.intervenant_id AND tpj.demandee = 0
  LEFT JOIN piece_jointe pj ON i.id = pj.intervenant_id
WHERE
  w.etape_code = 'PJ_VALIDATION'
  AND wc.etape_code = 'PJ_SAISIE'
  AND w.type_intervenant_code = 'E'
  AND w.atteignable = 1
  AND tpj.fournie = 1
  AND tpj.validee = 0
GROUP BY (w.intervenant_id, i.structure_id)
 No newline at end of file
+21 −0
Changes for data/ddl/view/V_INDICATEUR_241.sql: 21 added lines, 0 removed lines.
Original line number Diff line number Diff line
CREATE OR REPLACE FORCE VIEW V_INDICATEUR_241 AS
SELECT DISTINCT
  MAX(i.NOM_USUEL),
  MAX(i.PRENOM),
  w.intervenant_id,
  i.structure_id,
  MAX(pj.histo_modification) AS "Date de modification"
FROM
  tbl_workflow w
  JOIN tbl_workflow wc ON wc.intervenant_id = w.intervenant_id
  JOIN intervenant i ON i.id = w.intervenant_id AND i.histo_destruction IS NULL
  JOIN tbl_piece_jointe tpj ON i.id = tpj.intervenant_id AND tpj.demandee = 0
  LEFT JOIN piece_jointe pj ON i.id = pj.intervenant_id
WHERE
  w.etape_code = 'PJ_VALIDATION'
  AND wc.etape_code = 'PJ_SAISIE'
  AND w.type_intervenant_code = 'P'
  AND w.atteignable = 1
  AND tpj.fournie = 1
  AND tpj.validee = 0
GROUP BY (w.intervenant_id, i.structure_id)
 No newline at end of file
+14 −0
Changes for data/indicateurs.php: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -122,6 +122,13 @@ return [
                'route'             => 'piece-jointe/intervenant',
                'irrecevables'      => false,
            ],
            231 => [
                'enabled'           => true,
                'libelle_singulier' => '%s vacataire est en attente de validation de ses pièces justificatives facultatives',
                'libelle_pluriel'   => '%s vacataires sont en attente de validation de leurs pièces justificatives facultatives',
                'route'             => 'piece-jointe/intervenant',
                'irrecevables'      => false,
            ],
            240 => [
                'enabled'           => true,
                'libelle_singulier' => '%s permanent est en attente de validation de ses pièces justificatives obligatoires',
@@ -129,6 +136,13 @@ return [
                'route'             => 'piece-jointe/intervenant',
                'irrecevables'      => false,
            ],
            241 => [
                'enabled'           => true,
                'libelle_singulier' => '%s permanent est en attente de validation de ses pièces justificatives facultatives',
                'libelle_pluriel'   => '%s permanents sont en attente de validation de leurs pièces justificatives facultatives',
                'route'             => 'piece-jointe/intervenant',
                'irrecevables'      => false,
            ],
            250 => [
                'enabled'           => true,
                'libelle_singulier' => '%s étudiant n\'a pas fourni toutes les pièces justificatives obligatoires',