KFSG#68036 Notijob/Stoppen voor FSP catalogus
svn path=/Customer/trunk/; revision=52923
This commit is contained in:
@@ -343,7 +343,7 @@ AS
|
||||
'Catering1@schiphol.nl' xemail,
|
||||
NULL xmobile
|
||||
FROM res_rsv_artikel rra, res_rsv_ruimte rrr, res_artikel ra
|
||||
WHERE rra.res_rsv_ruimte_key = rrr.res_rsv_ruimte_key
|
||||
WHERE rra.res_rsv_ruimte_key = rrr.res_rsv_ruimte_key
|
||||
AND rra.res_artikel_key = ra.res_artikel_key
|
||||
--AND ra.res_discipline_key IN (165, 162, 167)
|
||||
AND ra.res_discipline_key IN (821, 822, 823, 862, 1242, 1281, 1241) -- KFSG#56898/58379/60004
|
||||
@@ -361,42 +361,6 @@ AS
|
||||
(SELECT fac_notificatie_job_nextrun
|
||||
FROM fac_notificatie_job
|
||||
WHERE fac_notificatie_job_view = 'KFSG_V_NOTI_CATERING')
|
||||
GROUP BY rrr.res_rsv_ruimte_key,
|
||||
rrr.res_reservering_key,
|
||||
rrr.res_rsv_ruimte_volgnr
|
||||
UNION ALL
|
||||
SELECT NULL sender,
|
||||
NULL receiver, --Catering1@schiphol.nl
|
||||
'Reservering '
|
||||
|| rrr.res_reservering_key
|
||||
|| '/'
|
||||
|| rrr.res_rsv_ruimte_volgnr
|
||||
|| ' is aangemaakt/gewijzigd '
|
||||
text,
|
||||
'RESINF' code,
|
||||
NULL fac_srtnotificatie_key,
|
||||
rrr.res_reservering_key key,
|
||||
rrr.res_rsv_ruimte_key xkey,
|
||||
'Catering1@schiphol.nl' xemail,
|
||||
NULL xmobile
|
||||
FROM fac_tracking t,
|
||||
res_rsv_ruimte rrr,
|
||||
res_ruimte_opstelling ro,
|
||||
res_ruimte rr
|
||||
WHERE fac_srtnotificatie_key IN (88, 89) -- resnew, resupd
|
||||
AND t.fac_tracking_refkey = rrr.res_rsv_ruimte_key
|
||||
AND rrr.res_ruimte_opstel_key = ro.res_ruimte_opstel_key
|
||||
AND ro.res_ruimte_key = rr.res_ruimte_key
|
||||
AND rr.res_discipline_key = 142 -- FSP
|
||||
AND t.fac_tracking_datum >
|
||||
(SELECT fac_notificatie_job_nextrun
|
||||
- fac_notificatie_job_interval / 24
|
||||
FROM fac_notificatie_job
|
||||
WHERE fac_notificatie_job_view = 'KFSG_V_NOTI_CATERING')
|
||||
AND t.fac_tracking_datum <
|
||||
(SELECT fac_notificatie_job_nextrun
|
||||
FROM fac_notificatie_job
|
||||
WHERE fac_notificatie_job_view = 'KFSG_V_NOTI_CATERING')
|
||||
GROUP BY rrr.res_rsv_ruimte_key,
|
||||
rrr.res_reservering_key,
|
||||
rrr.res_rsv_ruimte_volgnr;
|
||||
|
||||
Reference in New Issue
Block a user