LOGI#67519 CUST03-notijob/Uurlijkse BEZ-rapportage naar externe receptie

svn path=/Customer/trunk/; revision=52948
This commit is contained in:
Maarten van der Heide
2021-09-08 11:32:11 +00:00
parent 4917472e59
commit 9480b2319d

View File

@@ -2338,7 +2338,7 @@ AS
a.bez_afspraak_key,
a.alg_locatie_key extra_key,
t.last_mut,
DECODE (SIGN (t.last_mut - nj.fac_notificatie_job_nextrun - (nj.fac_notificatie_job_interval / 24)),
DECODE (SIGN (t.last_mut - (nj.fac_notificatie_job_nextrun - (nj.fac_notificatie_job_interval / 24))),
-1, NULL,
sn.fac_srtnotificatie_code)
noti, -- Kolom gevuld met 'CUST03', dan deze regel notificeren!
@@ -2410,6 +2410,7 @@ AS
FROM logi_v_rap_bez2receptie v, fac_usrrap r
WHERE v.extra_key = 1381 -- HTC/High Tech Campus Eindhoven
AND v.noti = 'CUST03'
--AND v.tot < SYSDATE -- Geen notificaties voor afspraken in verleden?
AND UPPER (r.fac_usrrap_view_name) = 'LOGI_V_RAP_BEZ2RECEPTIE';
------ payload end ------