GRKL#36467 Notificatie naar Inkoop tbv. unlisten ProActive
svn path=/Customer/trunk/; revision=32052
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
-- Script containing customer specific db-configuration for GRKL.
|
|
||||||
-- (c) 2016 Facilitor B.V.
|
|
||||||
--
|
--
|
||||||
-- Support: +31 53 4800700
|
-- $Id$
|
||||||
|
--
|
||||||
|
-- Script containing customer specific db-configuration for GRKL.
|
||||||
DEFINE thisfile = 'GRKL.SQL'
|
DEFINE thisfile = 'GRKL.SQL'
|
||||||
DEFINE dbuser = '^GRKL'
|
DEFINE dbuser = '^GRKL'
|
||||||
DEFINE custid = 'GRKL'
|
DEFINE custid = 'GRKL'
|
||||||
@@ -204,7 +204,7 @@ AS
|
|||||||
AND rrr.res_rsv_ruimte_host_key = pf.prs_perslid_key
|
AND rrr.res_rsv_ruimte_host_key = pf.prs_perslid_key
|
||||||
AND rrr.res_rsv_ruimte_key = voorz.res_rsv_ruimte_key(+);
|
AND rrr.res_rsv_ruimte_key = voorz.res_rsv_ruimte_key(+);
|
||||||
|
|
||||||
/* Formatted on 23-11-2016 13:56:04 (QP5 v5.136.908.31019) */
|
/* Formatted on 13-12-2016 14:05:55 (QP5 v5.136.908.31019) */
|
||||||
CREATE OR REPLACE VIEW grkl_v_noti_leidinggevende
|
CREATE OR REPLACE VIEW grkl_v_noti_leidinggevende
|
||||||
(
|
(
|
||||||
code,
|
code,
|
||||||
@@ -212,18 +212,40 @@ CREATE OR REPLACE VIEW grkl_v_noti_leidinggevende
|
|||||||
receiver,
|
receiver,
|
||||||
text,
|
text,
|
||||||
key,
|
key,
|
||||||
xkey
|
xkey,
|
||||||
|
xemail,
|
||||||
|
xmobile
|
||||||
)
|
)
|
||||||
AS
|
AS
|
||||||
SELECT sn.fac_srtnotificatie_code,
|
SELECT sn.fac_srtnotificatie_code,
|
||||||
NULL,
|
NULL,
|
||||||
m.prs_perslid_key,
|
NULL,
|
||||||
sn.fac_srtnotificatie_oms,
|
sn.fac_srtnotificatie_oms,
|
||||||
m.mld_melding_key,
|
m.mld_melding_key,
|
||||||
|
NULL,
|
||||||
|
p.prs_perslid_email,
|
||||||
|
NULL
|
||||||
|
FROM mld_melding m,
|
||||||
|
prs_v_aanwezigperslid p,
|
||||||
|
fac_srtnotificatie sn,
|
||||||
|
fac_notificatie_job nj
|
||||||
|
WHERE m.mld_stdmelding_key = 142 -- Afmelden ICT & Fac.
|
||||||
|
AND m.prs_perslid_key = p.prs_perslid_key
|
||||||
|
AND sn.fac_srtnotificatie_code = 'CUST01'
|
||||||
|
AND nj.fac_notificatie_job_view = 'GRKL_V_NOTI_LEIDINGGEVENDE'
|
||||||
|
AND m.mld_melding_datum BETWEEN nj.fac_notificatie_job_nextrun - (nj.fac_notificatie_job_interval / 24) AND nj.fac_notificatie_job_nextrun
|
||||||
|
UNION ALL
|
||||||
|
SELECT sn.fac_srtnotificatie_code,
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
sn.fac_srtnotificatie_oms,
|
||||||
|
m.mld_melding_key,
|
||||||
|
NULL,
|
||||||
|
'inkoop@klimmendaal.nl',
|
||||||
NULL
|
NULL
|
||||||
FROM mld_melding m, fac_srtnotificatie sn, fac_notificatie_job nj
|
FROM mld_melding m, fac_srtnotificatie sn, fac_notificatie_job nj
|
||||||
WHERE m.mld_stdmelding_key = 123 -- Afmelden ICT & Fac.
|
WHERE m.mld_stdmelding_key = 142 -- Afmelden ICT & Fac.
|
||||||
AND sn.fac_srtnotificatie_code = 'CUST01'
|
AND sn.fac_srtnotificatie_code = 'CUST02'
|
||||||
AND nj.fac_notificatie_job_view = 'GRKL_V_NOTI_LEIDINGGEVENDE'
|
AND nj.fac_notificatie_job_view = 'GRKL_V_NOTI_LEIDINGGEVENDE'
|
||||||
AND m.mld_melding_datum BETWEEN nj.fac_notificatie_job_nextrun - (nj.fac_notificatie_job_interval / 24) AND nj.fac_notificatie_job_nextrun;
|
AND m.mld_melding_datum BETWEEN nj.fac_notificatie_job_nextrun - (nj.fac_notificatie_job_interval / 24) AND nj.fac_notificatie_job_nextrun;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user