YKPN#67361 -- notificatie job tbv nieuwe notes bij facturen

svn path=/Customer/trunk/; revision=52795
This commit is contained in:
Norbert Wassink
2021-08-26 13:40:57 +00:00
parent bcd5182b6d
commit d9df850cc4

View File

@@ -14007,6 +14007,24 @@ AS
8 -- geaccepteerd
);
CREATE OR REPLACE VIEW ykpn_v_noti_fact_note
(code, sender, receiver, text, key, xkey, xemail, xmobile, attachments, xsender)
AS
SELECT 'CUST18' code,
NULL sender,
NULL receiver,
'Factuur '||fin.fin_factuur_nr||' heeft een nieuwe notitie: '|| fnn.fin_factuur_note_omschrijving,
fin.fin_factuur_key key,
NULL xkey,
'kpn@yask.nl' xemail,
NULL xmobile,
NULL attachments,
NULL xsender
FROM fin_factuur fin, fin_factuur_note fnn
WHERE fnn.fin_factuur_key = fin.fin_factuur_key
AND fnn.fin_factuur_note_aanmaak> SYSDATE-1;
-- Herinnering naar de winkel als de actie meer dan 7 dagen bij de winkel staat.
CREATE OR REPLACE VIEW ykpn_v_noti_retail_winkel
(