FCLT#66686 Incidenteel gemiste notificaties?

svn path=/Database/trunk/; revision=51284
This commit is contained in:
Erik Groener
2021-05-06 07:24:44 +00:00
parent 0698b0f207
commit 46150b56f5
2 changed files with 9 additions and 3 deletions

View File

@@ -391,9 +391,9 @@ END;
CREATE_TRIGGER(fac_t_fac_notificatie_A_U)
AFTER UPDATE ON fac_notificatie
BEGIN
-- Ruim alle totaal verwerkte notificaties op.
DELETE FROM fac_notificatie
WHERE fac_notificatie_status=0
-- Ruim alle totaal verwerkte notificaties op.
DELETE FROM fac_notificatie
WHERE fac_notificatie_status IN (0,16)
AND fac_notificatie_systeemadres IS NULL
AND prs_bedrijfadres_key IS NULL;
END;

View File

@@ -593,6 +593,12 @@ INSERT INTO prs_perslid (prs_perslid_module,
WHERE prs_perslid_oslogin = '_FACILITOR'
AND NOT EXISTS (SELECT 1 FROM prs_perslid WHERE prs_perslid_oslogin = '_PUTORDERS');
/////////////////////////////////////////////////////////////////////////////////////////// FCLT#66686
DELETE FROM fac_notificatie
WHERE fac_notificatie_status IN (0,16)
AND fac_notificatie_systeemadres IS NULL
AND prs_bedrijfadres_key IS NULL;
/////////////////////////////////////////////////////////////////////////////////////////// FCLT#*****
///////////////////////////////////////////////////////////////////////////////////////////