PGHE#82040 Notificatie en bijbehorende job aanmaken.
svn path=/Customer/trunk/; revision=64082
This commit is contained in:
@@ -1502,6 +1502,30 @@ AS
|
||||
--Notificatie wordt gestuurd naar de contractbeheerders
|
||||
AND gg.fac_groep_key =
|
||||
DECODE (pchx.get_user, 'PGHE', 181);
|
||||
|
||||
CREATE OR REPLACE VIEW pghe_v_noti_bes_delivery
|
||||
AS
|
||||
SELECT DISTINCT 'CUST16' code,
|
||||
NULL sender,
|
||||
b.prs_perslid_key_voor receiver,
|
||||
'Is jouw bestelling ' || b.bes_bestelling_key || ' al geleverd?' text,
|
||||
b.bes_bestelling_key key,
|
||||
NULL xkey
|
||||
FROM bes_disc_params dp,
|
||||
bes_bestelling b,
|
||||
bes_bestelling_item bi,
|
||||
bes_srtdeel sd,
|
||||
bes_srtgroep sg
|
||||
WHERE sg.ins_discipline_key = dp.bes_ins_discipline_key
|
||||
AND sg.bes_srtgroep_key = sd.bes_srtgroep_key
|
||||
AND sd.bes_srtdeel_key = bi.bes_srtdeel_key
|
||||
AND bi.bes_bestelling_key = b.bes_bestelling_key
|
||||
AND bes_disc_params_deliver_fe = 1
|
||||
AND b.bes_bestelling_status = 5 -- besteld
|
||||
AND dp.bes_disc_params_noti_dagen IS NOT NULL
|
||||
AND b.bes_bestelling_leverdatum + dp.bes_disc_params_noti_dagen = TRUNC (SYSDATE)
|
||||
GROUP BY b.bes_bestelling_key, b.prs_perslid_key_voor;
|
||||
|
||||
------ payload end ------
|
||||
|
||||
SET DEFINE OFF
|
||||
|
||||
Reference in New Issue
Block a user