LBRN#85587 -- Reminder instellen voor organisator een dag voor reservering
svn path=/Customer/trunk/; revision=66280
This commit is contained in:
@@ -381,9 +381,56 @@ AS
|
||||
WHERE t.fac_srtnotificatie_key = 421
|
||||
AND t.fac_tracking_refkey = rrr.res_reservering_key
|
||||
AND t.fac_tracking_oms LIKE '%CUST03%');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE OR REPLACE VIEW lbrn_v_noti_res_host
|
||||
(
|
||||
code,
|
||||
sender,
|
||||
receiver,
|
||||
text,
|
||||
key,
|
||||
xemail,
|
||||
xmobile,
|
||||
attachments,
|
||||
xsender
|
||||
)
|
||||
AS
|
||||
SELECT 'CUST05' code
|
||||
, NULL sender
|
||||
, rsvr.res_rsv_ruimte_host_key receiver
|
||||
, 'Reservering '
|
||||
|| res.res_reservering_key
|
||||
|| ': U heeft op '
|
||||
|| TO_CHAR (rsvr.res_rsv_ruimte_van, 'DD-MM')
|
||||
|| ' van '
|
||||
|| TO_CHAR (rsvr.res_rsv_ruimte_van, 'HH24:MI')
|
||||
|| ' tot '
|
||||
|| TO_CHAR (rsvr.res_rsv_ruimte_tot, 'HH24:MI')
|
||||
|| ' ruimte '
|
||||
|| r.res_ruimte_nr
|
||||
|| ' gereserveerd.' text
|
||||
, res.res_reservering_key key
|
||||
, NULL xemail
|
||||
, NULL xmobile
|
||||
, NULL attachments
|
||||
, NULL xsender
|
||||
FROM res_v_aanwezigreservering res
|
||||
, res_v_aanwezigrsv_ruimte rsvr
|
||||
, res_ruimte_opstelling opst
|
||||
, res_disc_params rdp
|
||||
, res_ruimte r
|
||||
WHERE r.res_discipline_key = rdp.res_ins_discipline_key
|
||||
AND rdp.res_disc_params_noti_dagen IS NOT NULL
|
||||
AND res.res_reservering_key = rsvr.res_reservering_key
|
||||
AND opst.res_ruimte_opstel_key = rsvr.res_ruimte_opstel_key
|
||||
AND opst.res_ruimte_key = r.res_ruimte_key
|
||||
AND rsvr.res_status_fo_key <= 5
|
||||
AND TRUNC(rsvr.res_rsv_ruimte_van) >TRUNC(fac.datumtijdplusuitvoertijd (SYSDATE, 0, 'DAGEN'))
|
||||
AND TRUNC(res_rsv_ruimte_van) <= TRUNC(fac.datumtijdplusuitvoertijd (SYSDATE, res_disc_params_noti_dagen, 'DAGEN'))
|
||||
AND fac.getweekdaynum(sysdate) NOT IN (1,7)
|
||||
AND rsvr.res_rsv_ruimte_van >= SYSDATE
|
||||
|
||||
|
||||
CREATE OR REPLACE VIEW lbrn_v_cnt_verleng_rap
|
||||
AS
|
||||
|
||||
Reference in New Issue
Block a user