KFSG#80042 CUST05-notijob via eigen tabel
svn path=/Customer/trunk/; revision=62065
This commit is contained in:
@@ -4527,13 +4527,15 @@ AS
|
||||
rrr.res_reservering_key,
|
||||
rrr.res_rsv_ruimte_key,
|
||||
NULL xsender,
|
||||
DECODE (rd.res_discipline_key, 218, 'Bastiaan.Brandenburg@schiphol.nl', 'FSP@schiphol.nl') xemail,
|
||||
--DECODE (rd.res_discipline_key, 218, 'Bastiaan.Brandenburg@schiphol.nl', 'FSP@schiphol.nl') xemail,
|
||||
SUBSTR (ud.fac_usrdata_omschr, INSTR (ud.fac_usrdata_omschr, '/') + 1) xemail,
|
||||
NULL xmobile,
|
||||
NULL attachments
|
||||
FROM fac_tracking t,
|
||||
res_v_aanwezigrsv_ruimte rrr,
|
||||
res_v_aanwezigrsv_deel rrd,
|
||||
res_v_aanwezigdeel rd,
|
||||
(SELECT * FROM fac_v_aanwezigusrdata WHERE fac_usrtab_key = 421) ud, -- CUST05 ontvanger
|
||||
fac_srtnotificatie sn,
|
||||
fac_notificatie_job nj
|
||||
WHERE t.fac_srtnotificatie_key = 88 -- RESNEW
|
||||
@@ -4542,6 +4544,7 @@ AS
|
||||
AND rrr.res_rsv_ruimte_key = rrd.res_rsv_ruimte_key
|
||||
AND rrd.res_deel_key = rd.res_deel_key
|
||||
AND rd.res_discipline_key IN (218, 1781) -- GPG/Yask Facility Management
|
||||
AND rd.res_discipline_key = fac.safe_to_number (SUBSTR (ud.fac_usrdata_omschr, 1, INSTR (ud.fac_usrdata_omschr, '/') - 1))
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user