LPNL#89990 Pre-putorders aangevuld met filter voor bezoekers registraties.

svn path=/Customer/trunk/; revision=69865
This commit is contained in:
Arthur Egberink
2025-07-29 11:16:37 +00:00
parent 1c8c8b398b
commit 7026b401e6

View File

@@ -1228,6 +1228,18 @@ CREATE OR REPLACE PROCEDURE lpnl_pre_putorders
AS
BEGIN
LPNL.mld_ord_after_insert;
-- Locatie Rotterdam wil graag van iedere bezoeker een email ontvangen. Dat kan via systeem adres maar daar ziet voor
-- bezoekers nog geen restrictie op locatie op. Daarom worden ongewenste notificaties op andere locaties hier verwijderd.\
-- LPNL#90079
DELETE fac_notificatie
WHERE fac_notificatie_key IN
(SELECT fac_notificatie_key
FROM bez_afspraak a, fac_notificatie n
WHERE n.fac_notificatie_refkey = a.bez_afspraak_key
AND n.fac_srtnotificatie_key IN (30, 31) -- BEZMUT, BEZUPD
AND alg_locatie_key <> 41 -- Rotterdam
AND fac_notificatie_systeemadres IS NOT NULL);
END;
/