FLEX#64717 Notificatie naar prs_bedrijfadres,
Specifieke neutrale FACTST notificatie is ook wel handig svn path=/Database/trunk/; revision=50503
This commit is contained in:
@@ -1922,6 +1922,7 @@ DEF_FAC_SRTNOT('BEZBEZ', 18, 'lcl_noti_BEZBEZ', '', '0', 'afspraak', 10);
|
||||
DEF_FAC_SRTNOT('MESMES', 1, 'lcl_noti_MESMES', 'msg/msg_message.asp?message_key=', '0', 'message', 10);
|
||||
|
||||
DEF_FAC_SRTNOT('FACUSR', 0, 'lcl_noti_FACUSR', '', '0', 'rapport', 10);
|
||||
DEF_FAC_SRTNOT('FACTST', 0, 'lcl_noti_FACTST', '', '0', 'perslid', 10);
|
||||
|
||||
DEF_FAC_SRTNOT('IMPFAT', 0, 'lcl_noti_IMPFAT', '', '0', null, 10);
|
||||
DEF_FAC_SRTNOT('IMPERR', 0, 'lcl_noti_IMPERR', '', '0', null, 10);
|
||||
|
||||
@@ -392,7 +392,10 @@ CREATE_TRIGGER(fac_t_fac_notificatie_A_U)
|
||||
AFTER UPDATE ON fac_notificatie
|
||||
BEGIN
|
||||
-- Ruim alle totaal verwerkte notificaties op.
|
||||
DELETE FROM fac_notificatie WHERE fac_notificatie_status=0 AND fac_notificatie_systeemadres IS NULL;
|
||||
DELETE FROM fac_notificatie
|
||||
WHERE fac_notificatie_status=0
|
||||
AND fac_notificatie_systeemadres IS NULL
|
||||
AND prs_bedrijfadres_key IS NULL;
|
||||
END;
|
||||
/
|
||||
|
||||
|
||||
@@ -578,7 +578,7 @@ AS
|
||||
WHERE reservations_today.res_deel_key = sensors.res_deel_key
|
||||
AND SYSDATE BETWEEN res_rsv_deel_van - (res_disc_params_preposttime / 24)
|
||||
AND res_rsv_deel_van;
|
||||
|
||||
|
||||
|
||||
|
||||
-- Notificatie voor opdrachten in de queue die al meer dan S(puo_failalert_threshold) minuten gefaald zijn
|
||||
@@ -651,7 +651,7 @@ SELECT fac_notificatie_receiver_email, fac_notificatie_receiver_phone, fac_notif
|
||||
fac_notificatie_key, fac_notificatie_refkey, fac_notificatie_datum, fac_srtnotificatie_code, fac_srtnotificatie_xmlnode,
|
||||
fac_notificatie_extrakey, fac_notificatie_sender_email, fac_notificatie_lang, fac_notificatie_systeemadres,
|
||||
fac_notificatie_attachments, fac_srtnotificatie_delay, fac_srtnotificatie_srtkm_key, prs_perslid_key_receiver,
|
||||
fac_notificatie_notbefore, fac_notificatie_failcount
|
||||
fac_notificatie_notbefore, fac_notificatie_failcount, prs_bedrijfadres_key
|
||||
FROM fac_notificatie n
|
||||
LEFT OUTER JOIN fac_srtnotificatie sn ON n.fac_srtnotificatie_key = sn.fac_srtnotificatie_key;
|
||||
|
||||
|
||||
@@ -338,6 +338,8 @@ ALTER TABLE fac_notificatie_job ADD CONSTRAINT fac_c_notificatie_job1 CHECK((fac
|
||||
ALTER TABLE fac_notificatie_job ADD fac_notificatie_job_queue VARCHAR2(20) DEFAULT 'DEFAULT' NOT NULL;
|
||||
ALTER TABLE fac_notificatie ADD fac_notificatie_queue VARCHAR2(20) DEFAULT 'DEFAULT' NOT NULL;
|
||||
|
||||
DEF_FAC_SRTNOT('FACTST', 0, 'lcl_noti_FACTST', '', '0', 'perslid', 10);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////// FLEX#65726
|
||||
|
||||
ALTER TABLE prs_bedrijfadres
|
||||
|
||||
Reference in New Issue
Block a user