Commit 7f400010 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

MAJ du filtre de la table INTERVENANT

parent 1aaa6a1b
Loading
Loading
Loading
Loading
+2 −2
Changes for data/import_tables.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -15,11 +15,11 @@ return [
        'KEY_COLUMNS'          => 'STATUT_ID',
        'SYNC_HOOK_BEFORE'     => "UNICAEN_IMPORT.REFRESH_MV('MV_INTERVENANT');",
        'SYNC_NON_IMPORTABLES' => true,
        'SYNC_FILTRE'          => "WHERE import_action <> 'delete' OR (
        'SYNC_FILTRE'          => "WHERE (import_action <> 'delete' OR (
      (NOT exists(SELECT intervenant_id FROM intervenant_dossier WHERE histo_destruction IS NULL AND intervenant_id = v_diff_intervenant.id))
  AND (NOT exists(SELECT intervenant_id FROM piece_jointe WHERE histo_destruction IS NULL AND intervenant_id = v_diff_intervenant.id))
  AND (NOT exists(SELECT intervenant_id FROM service WHERE histo_destruction IS NULL AND intervenant_id = v_diff_intervenant.id))
)",
))",
    ],
    'AFFECTATION_RECHERCHE' => [
        'SYNC_FILTRE' => "WHERE INTERVENANT_ID IS NOT NULL",