Skip to content
Snippets Groups Projects
Commit a7e942fe authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Merge branch 'master' of https://git.unicaen.fr/open-source/OSE

parents 91fa8276 73590f3a
Branches
Tags
1 merge request!55Ll bug report services
...@@ -45,6 +45,13 @@ Une nouvelle documentation sur les connecteurs est disponible ici : [Import de d ...@@ -45,6 +45,13 @@ Une nouvelle documentation sur les connecteurs est disponible ici : [Import de d
* Attention : un bug est connu et en cours de résolution : il se produit lorsqu'en tant qu'intervenant vous saisissez vos données personnelles. Une page d'erreur s'affiche au moment ou vous sélectionnez votre statut. Une mise à jour de la page suffit pour pouvoir continuer la saisie du formulaire. * Attention : un bug est connu et en cours de résolution : il se produit lorsqu'en tant qu'intervenant vous saisissez vos données personnelles. Une page d'erreur s'affiche au moment ou vous sélectionnez votre statut. Une mise à jour de la page suffit pour pouvoir continuer la saisie du formulaire.
# OSE 14.13
## Corrections de bugs
* Refactoring de l'indicateur 320 qui n'affichait plus uniquement les intervenants en attente de la création d'un contrat initial
* Refactoring de l'indicateur 330 : affiche maintenant uniquement les intervenants en attente d'un avenant
# OSE 14.12 # OSE 14.12
## Corrections de bugs ## Corrections de bugs
......
...@@ -177,7 +177,7 @@ class DataGen ...@@ -177,7 +177,7 @@ class DataGen
'table' => 'DOSSIER_CHAMP_AUTRE', 'table' => 'DOSSIER_CHAMP_AUTRE',
'context' => ['install', 'update'], 'context' => ['install', 'update'],
'key' => 'ID', 'key' => 'ID',
'options' => ['update-ignore-cols' => ['LIBELLE', 'DOSSIER_CHAMP_AUTRE_TYPE_ID', 'CONTENU', 'DESCRIPTION']], 'options' => ['update-ignore-cols' => ['LIBELLE', 'DOSSIER_CHAMP_AUTRE_TYPE_ID', 'CONTENU', 'DESCRIPTION', 'OBLIGATOIRE']],
], ],
......
...@@ -9,11 +9,17 @@ SELECT DISTINCT ...@@ -9,11 +9,17 @@ SELECT DISTINCT
w.structure_id w.structure_id
FROM FROM
tbl_workflow w tbl_workflow w
LEFT JOIN tbl_contrat c ON c.INTERVENANT_ID = w.intervenant_id AND w.structure_id = c.structure_id JOIN intervenant i ON w.intervenant_id = i.id
JOIN statut_intervenant si ON si.id = i.statut_id
LEFT JOIN contrat c ON c.intervenant_id = w.intervenant_id
WHERE WHERE
w.atteignable = 1 w.atteignable = 1
AND w.etape_code = 'CONTRAT' AND w.etape_code = 'CONTRAT'
AND w.objectif > 0 AND w.objectif > 0
AND w.realisation = 0 AND w.realisation = 0
AND NVL(c.EDITE,0) <> 1 AND c.histo_destruction IS NULL
AND i.histo_destruction IS NULL
AND si.histo_destruction IS NULL
AND c.id IS NULL
AND si.peut_avoir_contrat = 1
) t ) t
\ No newline at end of file
CREATE OR REPLACE FORCE VIEW V_INDICATEUR_330 AS CREATE OR REPLACE FORCE VIEW V_INDICATEUR_330 AS
WITH has_contrat AS ( WITH has_contrat AS (
SELECT DISTINCT SELECT DISTINCT
intervenant_id i.id intervenant_id,
i.annee_id annee_id,
c.structure_id structure_id
FROM FROM
tbl_contrat intervenant i
JOIN contrat c ON c.intervenant_id = i.iD
WHERE WHERE
edite > 0 c.type_contrat_id = 1 --a déjà un contrat de type 'CONTRAT'
AND c.histo_destruction IS NULL
AND i.histo_destruction IS NULL
) )
SELECT SELECT
rownum id, rownum id,
...@@ -13,10 +18,13 @@ SELECT ...@@ -13,10 +18,13 @@ SELECT
w.intervenant_id, w.intervenant_id,
w.structure_id w.structure_id
FROM FROM
tbl_workflow w intervenant i
JOIN has_contrat hc ON hc.intervenant_id = w.intervenant_id JOIN tbl_workflow w ON w.intervenant_id = i.id
JOIN has_contrat hc ON hc.intervenant_id = i.id
LEFT JOIN contrat c ON c.intervenant_id = i.id AND c.structure_id = w.structure_id AND c.histo_destruction IS NULL
WHERE WHERE
w.atteignable = 1 w.atteignable = 1
AND w.etape_code = 'CONTRAT' AND w.etape_code = 'CONTRAT'
AND w.objectif > 0 AND w.objectif > 0
AND w.realisation < w.objectif AND w.realisation < w.objectif
AND c.id IS NULL
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment