WEHK#26420 Inspectienotificatie
svn path=/Customer/trunk/; revision=18200
This commit is contained in:
@@ -2184,7 +2184,7 @@ END;
|
||||
-- LET OP: Notificatiejob via xemail!!!
|
||||
-- CUST02: wekelijks mbt. over 1 tot 2 weken te keuren objecten!
|
||||
-- CUST03: wekelijks mbt. objecten waarvan keuringsdatum is verstreken!
|
||||
/* Formatted on 2-5-2013 12:50:40 (QP5 v5.115.810.9015) */
|
||||
/* Formatted on 20-6-2013 9:58:02 (QP5 v5.115.810.9015) */
|
||||
CREATE OR REPLACE VIEW WEHK_V_NOTI_INSPECTIEREMINDER
|
||||
(
|
||||
code,
|
||||
@@ -2206,9 +2206,13 @@ AS
|
||||
REPLACE (
|
||||
sn.fac_srtnotificatie_oms,
|
||||
'##SRTGROEP##',
|
||||
DECODE (x.min_srtgroep_oms,
|
||||
x.max_srtgroep_oms, x.min_srtgroep_oms,
|
||||
x.min_srtgroep_oms || ', ...')
|
||||
DECODE (
|
||||
x.min_srtgroep_oms,
|
||||
x.max_srtgroep_oms,
|
||||
x.min_srtgroep_oms
|
||||
|| DECODE (x.aantal, 1, '-' || max_controle_oms, ''),
|
||||
x.min_srtgroep_oms || ', ...'
|
||||
)
|
||||
),
|
||||
'##AANTAL##',
|
||||
x.aantal
|
||||
@@ -2231,6 +2235,7 @@ AS
|
||||
lv.prs_perslid_key -- Rest -> locatie-verantw.
|
||||
)
|
||||
receiver,
|
||||
MAX (cso.ins_srtcontrole_omschrijving) max_controle_oms,
|
||||
MIN (o.ins_srtgroep_omschrijving) min_srtgroep_oms,
|
||||
MAX (o.ins_srtgroep_omschrijving) max_srtgroep_oms,
|
||||
MIN (o.ins_deel_key) dummy_deel_key,
|
||||
@@ -2355,9 +2360,13 @@ AS
|
||||
REPLACE (
|
||||
sn.fac_srtnotificatie_oms,
|
||||
'##SRTGROEP##',
|
||||
DECODE (x.min_srtgroep_oms,
|
||||
x.max_srtgroep_oms, x.min_srtgroep_oms,
|
||||
x.min_srtgroep_oms || ', ...')
|
||||
DECODE (
|
||||
x.min_srtgroep_oms,
|
||||
x.max_srtgroep_oms,
|
||||
x.min_srtgroep_oms
|
||||
|| DECODE (x.aantal, 1, '-' || max_controle_oms, ''),
|
||||
x.min_srtgroep_oms || ', ...'
|
||||
)
|
||||
),
|
||||
'##AANTAL##',
|
||||
x.aantal
|
||||
@@ -2380,6 +2389,7 @@ AS
|
||||
lv.prs_perslid_key -- Rest -> locatie-verantw.
|
||||
)
|
||||
receiver,
|
||||
MAX (cso.ins_srtcontrole_omschrijving) max_controle_oms,
|
||||
MIN (o.ins_srtgroep_omschrijving) min_srtgroep_oms,
|
||||
MAX (o.ins_srtgroep_omschrijving) max_srtgroep_oms,
|
||||
MIN (o.ins_deel_key) dummy_deel_key,
|
||||
@@ -2610,7 +2620,7 @@ AS
|
||||
fac_srtnotificatie sn
|
||||
WHERE sn.fac_srtnotificatie_code = 'CUST03';
|
||||
|
||||
BEGIN fac.registercustversion('WEHK', 19); END;
|
||||
BEGIN fac.registercustversion('WEHK', 20); END;
|
||||
/
|
||||
BEGIN adm.systrackscript('$Workfile: wehk.sql $', '$Revision$', 0); END;
|
||||
/
|
||||
|
||||
Reference in New Issue
Block a user