SZDB#75972 -- Inrichten beleef-o-theek

svn path=/Customer/trunk/; revision=61086
This commit is contained in:
Arthur Egberink
2023-07-05 13:18:14 +00:00
parent 23d0b2d905
commit 809042f6dd

View File

@@ -232,8 +232,9 @@ AS
PROCEDURE res_after_insert (p_res_rsv_ruimte_key IN NUMBER) PROCEDURE res_after_insert (p_res_rsv_ruimte_key IN NUMBER)
AS AS
v_count NUMBER; v_count NUMBER;
v_onderwerp VARCHAR2(100); v_onderwerp VARCHAR2(100);
v_reservering_key NUMBER;
BEGIN BEGIN
SELECT COUNT (*) SELECT COUNT (*)
INTO v_count INTO v_count
@@ -245,8 +246,9 @@ AS
IF v_count = 0 IF v_count = 0
THEN THEN
SELECT 'Nieuwe reservering (' || rrr.res_reservering_key || '/' || rrr.res_rsv_ruimte_volgnr || ') ' || rd.res_deel_omschrijving || ' op ' || to_char(res_rsv_ruimte_van, 'dd-mm-yyyy') SELECT 'Nieuwe reservering (' || rrr.res_reservering_key || '/' || rrr.res_rsv_ruimte_volgnr || ') ' || rd.res_deel_omschrijving || ' op ' || to_char(res_rsv_ruimte_van, 'dd-mm-yyyy'),
INTO v_onderwerp rrr.res_reservering_key
INTO v_onderwerp, v_reservering_key
FROM res_rsv_ruimte rrr, res_rsv_deel rrd, res_deel rd FROM res_rsv_ruimte rrr, res_rsv_deel rrd, res_deel rd
WHERE rrr.res_rsv_ruimte_key = rrd.res_rsv_ruimte_key WHERE rrr.res_rsv_ruimte_key = rrd.res_rsv_ruimte_key
AND rrd.res_deel_key = rd.res_deel_key AND rrd.res_deel_key = rd.res_deel_key
@@ -263,12 +265,12 @@ AS
fac.putnotificationsrtprio (NULL, fac.putnotificationsrtprio (NULL,
10981, -- Notificatie user beleef-o-theek 10981, -- Notificatie user beleef-o-theek
'RES2BO', 'RES2BO',
p_res_rsv_ruimte_key, v_reservering_key,
v_onderwerp, v_onderwerp,
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL, p_res_rsv_ruimte_key,
2, 2,
NULL); NULL);
END IF; END IF;