KFSG#70107 BESOTV-notificatiejob (aan te schakelen voor Xerox en Staples)
svn path=/Customer/trunk/; revision=55346
This commit is contained in:
@@ -4358,14 +4358,16 @@ AS
|
||||
-- alsnog versturen als CUST04-notificatie voor sommige catalogi.
|
||||
CREATE OR REPLACE VIEW KFSG_V_NOTI_BESOTV
|
||||
(
|
||||
code,
|
||||
sender,
|
||||
receiver,
|
||||
text,
|
||||
key,
|
||||
xkey,
|
||||
xemail,
|
||||
xmobile
|
||||
CODE,
|
||||
SENDER,
|
||||
RECEIVER,
|
||||
TEXT,
|
||||
KEY,
|
||||
XKEY,
|
||||
XSENDER,
|
||||
XEMAIL,
|
||||
XMOBILE,
|
||||
ATTACHMENTS
|
||||
)
|
||||
AS
|
||||
SELECT DISTINCT
|
||||
@@ -4374,17 +4376,19 @@ AS
|
||||
b.prs_perslid_key,
|
||||
REPLACE (sn.fac_srtnotificatie_oms, '##KEY##', TO_CHAR (b.bes_bestelling_key)),
|
||||
b.bes_bestelling_key,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
NULL xkey,
|
||||
NULL xsender,
|
||||
NULL xemail,
|
||||
NULL xmobile,
|
||||
NULL attachments
|
||||
FROM fac_tracking t,
|
||||
bes_bestelling b,
|
||||
bes_bestelling_item bi,
|
||||
bes_srtdeel sd,
|
||||
bes_srtgroep sg,
|
||||
bes_disc_params dp,
|
||||
fac_notificatie_job nj,
|
||||
fac_srtnotificatie sn
|
||||
fac_srtnotificatie sn,
|
||||
fac_notificatie_job nj
|
||||
WHERE t.fac_srtnotificatie_key = 9 -- BESOTV
|
||||
AND t.fac_tracking_refkey = b.bes_bestelling_key
|
||||
AND b.bes_bestelling_key = bi.bes_bestelling_key
|
||||
@@ -4392,9 +4396,9 @@ AS
|
||||
AND sd.bes_srtgroep_key = sg.bes_srtgroep_key
|
||||
AND sg.ins_discipline_key = dp.bes_ins_discipline_key
|
||||
AND dp.bes_disc_params_noti_dagen = 1
|
||||
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
|
||||
AND sn.fac_srtnotificatie_code = 'CUST04';
|
||||
AND t.fac_tracking_datum > nj.fac_notificatie_job_lastrun;
|
||||
|
||||
------ payload end ------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user