KFST#56765 -- Factuur notificaties.
svn path=/Customer/trunk/; revision=43399
This commit is contained in:
@@ -1408,6 +1408,38 @@ BEGIN
|
||||
END;
|
||||
/
|
||||
|
||||
-- Notificatiejob om de administratie te informeren dat er facturen afgewezen zijn.
|
||||
-- Let op dat je wel bij de notificatie de vlag mail aanzet.
|
||||
-- Normaal worden factuurnotificaties niet verzonden omdat Facilitor niet weet wie
|
||||
-- ze wil ontvangen.
|
||||
CREATE OR REPLACE VIEW kfst_v_noti_fin_factuur
|
||||
AS
|
||||
SELECT NULL sender,
|
||||
562 receiver, -- Administratie
|
||||
NULL text, --Lcl.l('lcl_noti_FINFOK') || ': ' || f.fac_tracking_refkey
|
||||
sn.fac_srtnotificatie_code code,
|
||||
t.fac_tracking_refkey key,
|
||||
NULL xkey
|
||||
FROM fac_tracking t, fac_srtnotificatie sn
|
||||
WHERE t.fac_srtnotificatie_key = sn.fac_srtnotificatie_key
|
||||
AND fac_srtnotificatie_code IN ('FINFNO',
|
||||
'FINGNO',
|
||||
'FINFUN',
|
||||
'FINGUN')
|
||||
AND BITAND (fac_srtnotificatie_mode, 2) = 2
|
||||
AND t.fac_tracking_datum BETWEEN (SELECT fac_notificatie_job_nextrun
|
||||
- fac_notificatie_job_interval
|
||||
/ 24
|
||||
FROM fac_notificatie_job
|
||||
WHERE LOWER (
|
||||
fac_notificatie_job_view) =
|
||||
'kfst_v_noti_fin_factuur')
|
||||
AND (SELECT fac_notificatie_job_nextrun
|
||||
FROM fac_notificatie_job
|
||||
WHERE LOWER (
|
||||
fac_notificatie_job_view) =
|
||||
'kfst_v_noti_fin_factuur');
|
||||
|
||||
------ payload end ------
|
||||
|
||||
SET DEFINE OFF
|
||||
|
||||
Reference in New Issue
Block a user