KFSG#71873 Notijob/CUST05 naar GPG of Yask Facility Management bij reservering object
svn path=/Customer/trunk/; revision=56241
This commit is contained in:
@@ -4402,6 +4402,57 @@ AS
|
||||
AND nj.fac_notificatie_job_view = 'KFSG_V_NOTI_BESOTV'
|
||||
AND t.fac_tracking_datum > nj.fac_notificatie_job_lastrun;
|
||||
|
||||
-- KFSG#71873: Uurlijkse CUST05-notificatie van de reguliere RES-bon naar:
|
||||
-- - Serviceunit@schiphol.nl na boeking uit catalogus met key=218 (GPG)
|
||||
-- - FSP@schiphol.nl na boeking uit catalogus met key=1781 (Yask Facility Management)
|
||||
CREATE OR REPLACE VIEW KFSG_V_NOTI_RESOBJ
|
||||
(
|
||||
CODE,
|
||||
SENDER,
|
||||
RECEIVER,
|
||||
TEXT,
|
||||
KEY,
|
||||
XKEY,
|
||||
XSENDER,
|
||||
XEMAIL,
|
||||
XMOBILE,
|
||||
ATTACHMENTS
|
||||
)
|
||||
AS
|
||||
SELECT DISTINCT
|
||||
sn.fac_srtnotificatie_code,
|
||||
NULL,
|
||||
NULL,
|
||||
REPLACE (
|
||||
REPLACE (
|
||||
sn.fac_srtnotificatie_oms,
|
||||
'##KEY##',
|
||||
TO_CHAR (rrr.res_reservering_key) || '/' || TO_CHAR (rrr.res_rsv_ruimte_volgnr)),
|
||||
'##DESC##',
|
||||
rrr.res_rsv_ruimte_omschrijving),
|
||||
rrr.res_reservering_key,
|
||||
rrr.res_rsv_ruimte_key,
|
||||
NULL xsender,
|
||||
DECODE (d.ins_discipline_key, 218, 'Serviceunit@schiphol.nl', 'FSP@schiphol.nl') xemail,
|
||||
NULL xmobile,
|
||||
NULL attachments
|
||||
FROM fac_tracking t,
|
||||
res_v_aanwezigrsv_ruimte rrr,
|
||||
res_v_aanwezigrsv_deel rrd,
|
||||
res_v_aanwezigdeel rd,
|
||||
res_discipline d,
|
||||
fac_srtnotificatie sn,
|
||||
fac_notificatie_job nj
|
||||
WHERE t.fac_srtnotificatie_key = 88 -- RESNEW
|
||||
AND t.fac_tracking_refkey = rrr.res_rsv_ruimte_key
|
||||
--AND rrr.res_activiteit_key = -1
|
||||
AND rrr.res_rsv_ruimte_key = rrd.res_rsv_ruimte_key
|
||||
AND rrd.res_deel_key = rd.res_deel_key
|
||||
AND d.ins_discipline_key IN (218, 1791) -- GPG/Yask Facility Management
|
||||
AND sn.fac_srtnotificatie_code = 'CUST05'
|
||||
AND nj.fac_notificatie_job_view = 'KFSG_V_NOTI_RESOBJ'
|
||||
AND t.fac_tracking_datum > nj.fac_notificatie_job_lastrun;
|
||||
|
||||
------ payload end ------
|
||||
|
||||
SET DEFINE OFF
|
||||
|
||||
Reference in New Issue
Block a user