From c269b86a44792311c877891f52663c3e0de36082 Mon Sep 17 00:00:00 2001 From: Suzan Wiegerinck Date: Thu, 26 Oct 2023 07:28:35 +0000 Subject: [PATCH] PZEE#79764 Mail vanuit Facilitor (niet sturen naar inactieve personen) svn path=/Customer/trunk/; revision=62344 --- PZEE/PZEE.sql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PZEE/PZEE.sql b/PZEE/PZEE.sql index 7d64c0bd2..d42a4ef32 100644 --- a/PZEE/PZEE.sql +++ b/PZEE/PZEE.sql @@ -177,6 +177,13 @@ BEGIN LOOP BEGIN prs.delete_perslid (p_import_key, rec.prs_perslid_key); + + -- PZEE#79764 + UPDATE prs_perslid p + SET p.prs_perslid_inactief = SYSDATE + WHERE p.prs_perslid_key = rec.prs_perslid_key + AND p.prs_perslid_inactief IS NULL; + END; END LOOP;