Loading data/ddl/view/V_INDICATEUR_320.sql +8 −2 Changes for data/ddl/view/V_INDICATEUR_320.sql: 8 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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 Loading
data/ddl/view/V_INDICATEUR_320.sql +8 −2 Changes for data/ddl/view/V_INDICATEUR_320.sql: 8 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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