KFSG#79872 CUST04-notijob/Kopie naar repro@schiphol.nl

svn path=/Customer/trunk/; revision=64506
This commit is contained in:
Maarten van der Heide
2024-05-03 07:44:14 +00:00
parent 939a22f1eb
commit 922d94d079

View File

@@ -4451,6 +4451,7 @@ AS
-- KFSG#70107: BESOTV-notificatie, die standaard (bewust) staat uitgeschakeld,
-- alsnog versturen als CUST04-notificatie voor sommige catalogi.
-- Op speciaal verzoek hard-coded (ipv. bes_disc_params_noti_dagen)!
-- KFSG#79872: CUST04-notificatie voortaan ook versturen naar repro@schiphol.nl.
CREATE OR REPLACE VIEW KFSG_V_NOTI_BESOTV
(
CODE,
@@ -4468,7 +4469,7 @@ AS
SELECT DISTINCT
sn.fac_srtnotificatie_code,
NULL,
b.prs_perslid_key,
p.prs_perslid_email || ';repro@schiphol.nl',
REPLACE (sn.fac_srtnotificatie_oms, '##KEY##', TO_CHAR (b.bes_bestelling_key)),
b.bes_bestelling_key,
NULL xkey,
@@ -4482,6 +4483,7 @@ AS
bes_srtdeel sd,
bes_srtgroep sg,
--bes_disc_params dp,
prs_v_aanwezigperslid p,
fac_srtnotificatie sn,
fac_notificatie_job nj
WHERE t.fac_srtnotificatie_key = 9 -- BESOTV
@@ -4492,6 +4494,7 @@ AS
--AND sg.ins_discipline_key = dp.bes_ins_discipline_key
--AND dp.bes_disc_params_noti_dagen = 1
AND sg.ins_discipline_key IN (1121, 1122) -- Reproductie=Xerox/Kantoorartikelen=Staples
AND b.prs_perslid_key = p.prs_perslid_key
AND sn.fac_srtnotificatie_code = 'CUST04'
AND nj.fac_notificatie_job_view = 'KFSG_V_NOTI_BESOTV'
AND t.fac_tracking_datum > nj.fac_notificatie_job_lastrun;