PIVP#83532 -- Uitbereiding met extra res catalogus, notificatie job toegevoegd

svn path=/Customer/trunk/; revision=64893
This commit is contained in:
Norbert Wassink
2024-05-30 09:11:21 +00:00
parent 99aa6e31be
commit eff53427fc

View File

@@ -2794,6 +2794,7 @@ AS
AND (AANMK_DATUM> SYSDATE-2/24 OR LAST_UPD> SYSDATE-2/24);
-- Notificatie naar operations als een nieuwe reservering een afwijkende opstelling heeft
CREATE OR REPLACE VIEW PIVP_V_NOTI_RESNEW_OPER
(
sender,
@@ -2829,7 +2830,44 @@ AS
FROM fac_tracking ft
WHERE fac_tracking_refkey=rrr.res_rsv_ruimte_key
AND ft.fac_srtnotificatie_key=223
AND ft.fac_tracking_oms LIKE '%CUST03%');
AND ft.fac_tracking_oms LIKE '%CUST04%');
CREATE OR REPLACE VIEW PIVP_V_NOTI_RES_SPECZAAL
(
sender,
receiver,
text,
code,
key,
xkey,
xemail,
xmobile
)
AS
SELECT
NULL sender,
NULL receiver,
'Reservering '|| rrr.res_reservering_key||'/'||rrr.res_rsv_ruimte_volgnr||' is aangemaakt door '||p.prs_perslid_naam_friendly text,
'CUST03' code,
rrr.res_rsv_ruimte_key key,
NULL xkey,
'communications@pivotpark.com' xemail,
NULL xmobile
FROM res_rsv_ruimte rrr,
res_activiteit ra,
res_activiteitdiscipline rad,
res_discipline rd,
fac_notificatie_job f,
prs_v_perslid_fullnames p
WHERE rrr.res_activiteit_key = ra.res_activiteit_key
AND ra.res_activiteit_key = rad.res_activiteit_key
AND rad.res_discipline_key =rd.ins_discipline_key
AND UPPER(rd.ins_discipline_omschrijving)='PIVOT PARK (SPECIALE ZALEN)'
AND p.prs_perslid_key = rrr.res_rsv_ruimte_contact_key
AND rrr.res_rsv_ruimte_aanmaak
BETWEEN f.fac_notificatie_job_lastrun
AND f.fac_notificatie_job_nextrun;
-- Registratie nieuwe gebruiker in afgelopen dag