diff --git a/PCHW/pchw.sql b/PCHW/pchw.sql index 640a91030..195720fdb 100644 --- a/PCHW/pchw.sql +++ b/PCHW/pchw.sql @@ -2464,6 +2464,7 @@ IS -- Personen in de juiste autorisatiegroep zetten. -- Match bij PCHW is Email. -- Geen acties tenzij het aantal records in de importtabel meer dan 800 medewerkers betreft. + -- Enkele functionele accounts (srtperslid 57055) niet verwijderen (PCHW#85273) CURSOR c_del IS @@ -2472,6 +2473,7 @@ IS WHERE UPPER (p.prs_perslid_email) LIKE '%GEMEENTEWESTLAND.NL%' AND UPPER (p.prs_perslid_email) NOT IN (SELECT UPPER (prs_perslid_email) FROM fac_imp_perslid) + AND p.prs_srtperslid_key <> 57055 -- Functie 'Functioneel account (niet verwijderen)' uitsluiten ivm PCHW#85273 AND pf.prs_perslid_key = p.prs_perslid_key; v_count NUMBER;