-- Customer specific once-script VENT1.
--
-- (c) 2016 Facilitor B.V.
--
-- Support: +31 53 4800700
SET ECHO ON
SPOOL xVENT1.lst
SET DEFINE OFF

INSERT INTO fac_srtnotificatie (fac_srtnotificatie_code,
                                fac_srtnotificatie_mode,
                                fac_srtnotificatie_oms,
                                fac_srtnotificatie_xmlnode,
                                fac_srtnotificatie_url,
                                fac_srtnotificatie_groep)
    VALUES ('CUST01',
            2,
            'Rappeldatum van contract ##CNR## bereikt',
            'contract',
            'cnt/cnt_contract.asp?cnt_key=',
            0);

INSERT INTO fac_srtnotificatie (fac_srtnotificatie_code,
                                fac_srtnotificatie_mode,
                                fac_srtnotificatie_oms,
                                fac_srtnotificatie_xmlnode,
                                fac_srtnotificatie_url,
                                fac_srtnotificatie_groep)
    VALUES ('CUST02',
            2,
            'Opzegdatum van contract ##CNR## bereikt',
            'contract',
            'cnt/cnt_contract.asp?cnt_key=',
            0);

INSERT INTO fac_srtnotificatie (fac_srtnotificatie_code,
                                fac_srtnotificatie_mode,
                                fac_srtnotificatie_oms,
                                fac_srtnotificatie_xmlnode,
                                fac_srtnotificatie_url,
                                fac_srtnotificatie_groep)
    VALUES ('CUST03',
            2,
            'REMINDER: Datum indexering van contract ##CNR##',
            'contract',
            'cnt/cnt_contract.asp?cnt_key=',
            0);

INSERT INTO fac_srtnotificatie (fac_srtnotificatie_code,
                                fac_srtnotificatie_mode,
                                fac_srtnotificatie_oms,
                                fac_srtnotificatie_xmlnode,
                                fac_srtnotificatie_url,
                                fac_srtnotificatie_groep)
    VALUES ('CUST04',
            2,
            'REMINDER: Datum rentebetaling van contract ##CNR##',
            'contract',
            'cnt/cnt_contract.asp?cnt_key=',
            0);

CREATE OR REPLACE VIEW vent_v_noti_cntreminder AS SELECT NULL x FROM DUAL;
INSERT INTO fac_notificatie_job (fac_notificatie_job_view,
                                 fac_notificatie_job_oms,
                                 fac_notificatie_job_mode,
                                 fac_notificatie_job_interval,
                                 fac_notificatie_job_nextrun,
                                 fac_notificatie_job_flags)
    VALUES ('vent_v_noti_cntreminder',
            'Herinneringsmails contracten',
            0,
            24,
            NULL,
            0);

COMMIT;
BEGIN adm.systrackscriptId('$Id$'); END;
/
SPOOL OFF
@vent.sql
