HMOD#67665 -- HR-stromen in Facilitor - Rapportageview en Notijob behandelteam
svn path=/Customer/trunk/; revision=52410
This commit is contained in:
@@ -1413,7 +1413,7 @@ AS
|
||||
receiver,
|
||||
'De melding '
|
||||
|| m.mld_melding_key
|
||||
|| ' is toegewezen aan jouw/jullie '
|
||||
|| ' is toegewezen aan jouw/jullie behandelgroep '
|
||||
|| m.actieve_behandelgroep
|
||||
text,
|
||||
'CUST01'
|
||||
@@ -1451,18 +1451,11 @@ AS
|
||||
AND (
|
||||
(INSTR (fac_tracking_oms, 'Behandelteam: ') > 0 AND fac_srtnotificatie_key = 52) -- MLDUPD
|
||||
OR
|
||||
(INSTR (fac_tracking_oms, 'Behandelteam is gewijzigd naar') > 0 AND fac_srtnotificatie_key = 183)) -- MLDBHG
|
||||
(INSTR (fac_tracking_oms, 'Behandelteam is gewijzigd naar') > 0 AND fac_srtnotificatie_key = 61) -- MLDBHG
|
||||
OR
|
||||
(INSTR (fac_tracking_oms, 'is toegewezen aan jouw/jullie behandelgroep') > 0 AND fac_srtnotificatie_key = 261)) -- CUST01 -- flag 16
|
||||
)
|
||||
mld_toegewezen_laatste,
|
||||
(SELECT COALESCE (
|
||||
MAX (fac_tracking_datum),
|
||||
TO_DATE ('2021-01-01 00:00',
|
||||
'yyyy-mm-dd hh24:mi'))
|
||||
FROM fac_tracking ft
|
||||
WHERE fac_tracking_refkey = m.mld_melding_key
|
||||
AND INSTR (fac_tracking_oms, 'CUST01') > 0
|
||||
AND fac_srtnotificatie_key = 255) -- MLDTRK
|
||||
mld_cust01_verstuurd
|
||||
mld_toegewezen_laatste
|
||||
FROM mld_melding m,
|
||||
mld_stdmelding sm,
|
||||
ins_tab_discipline d,
|
||||
@@ -1475,8 +1468,7 @@ AS
|
||||
AND m.mld_ins_discipline_key = dp2.mld_ins_discipline_key -- Is de key van Behandelteam in mld_melding
|
||||
AND m.mld_melding_behandelaar2_key IS NULL
|
||||
AND dp2.mld_disc_params_emailnw3 IS NOT NULL) m
|
||||
WHERE m.mld_toegewezen_laatste > m.mld_cust01_verstuurd
|
||||
AND m.mld_toegewezen_laatste > m.job_datum_vanaf;
|
||||
WHERE m.mld_toegewezen_laatste > m.job_datum_vanaf;
|
||||
|
||||
|
||||
CREATE OR REPLACE VIEW hmod_v_noti_cntreminder
|
||||
|
||||
Reference in New Issue
Block a user