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
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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.


# 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

## Corrections de bugs
+1 −1
Original line number Diff line number Diff line
@@ -177,7 +177,7 @@ class DataGen
            'table'   => 'DOSSIER_CHAMP_AUTRE',
            'context' => ['install', 'update'],
            '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']],
        ],


+16 −10
Original line number Diff line number Diff line
@@ -9,11 +9,17 @@ SELECT DISTINCT
	w.structure_id
FROM
	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
	w.atteignable = 1
	AND w.etape_code = 'CONTRAT'
	AND w.objectif > 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
 No newline at end of file
+14 −6
Original line number Diff line number Diff line
CREATE OR REPLACE FORCE VIEW V_INDICATEUR_330 AS
WITH has_contrat AS (
  SELECT DISTINCT
    intervenant_id
    i.id            intervenant_id,
    i.annee_id      annee_id,
    c.structure_id  structure_id
  FROM
    tbl_contrat
  	intervenant i
  	JOIN contrat c ON c.intervenant_id = i.iD
  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
  rownum id,
@@ -13,10 +18,13 @@ SELECT
  w.intervenant_id,
  w.structure_id
FROM
  tbl_workflow w
  JOIN has_contrat hc ON hc.intervenant_id = w.intervenant_id
	intervenant i
	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
  w.atteignable = 1
  AND w.etape_code = 'CONTRAT'
  AND w.objectif > 0
  AND w.realisation < w.objectif
  AND c.id IS NULL
 No newline at end of file