FLEX#64717 notificatie naar bedrijfadres fixjes

svn path=/Database/trunk/; revision=51346
This commit is contained in:
Jos Groot Lipman
2021-05-10 10:11:47 +00:00
parent 9bfc577539
commit d35ac74ac6

View File

@@ -2073,7 +2073,7 @@ CREATE OR REPLACE PACKAGE BODY fac AS
lmode := BITAND(lmode, 255-4);
END IF;
IF lmode > 0 OR lsysteem IS NOT NULL THEN
IF lmode > 0 OR lsysteem IS NOT NULL OR pbedrijfadreskey IS NOT NULL THEN
INSERT INTO fac_notificatie
(fac_srtnotificatie_key, fac_notificatie_status, prs_perslid_key_sender, prs_perslid_key_receiver,
fac_notificatie_receiver_email, fac_notificatie_receiver_phone, fac_notificatie_oms,
@@ -2372,7 +2372,7 @@ CREATE OR REPLACE PACKAGE BODY fac AS
END IF;
END IF;
IF lmode > 0 OR lsysteem IS NOT NULL
IF lmode > 0 OR lsysteem IS NOT NULL OR pbedrijfadreskey IS NOT NULL
THEN
-- Stuur notificatie.
INSERT INTO fac_notificatie (fac_srtnotificatie_key,
@@ -2389,6 +2389,7 @@ CREATE OR REPLACE PACKAGE BODY fac AS
fac_notificatie_lang,
fac_notificatie_systeemadres,
fac_notificatie_attachments,
prs_bedrijfadres_key,
fac_notificatie_queue)
VALUES (skey,
lmode,
@@ -2404,6 +2405,7 @@ CREATE OR REPLACE PACKAGE BODY fac AS
llang,
lsysteem,
pattach,
pbedrijfadreskey,
pqueue);
END IF;
END;