-- zet opdracht 100899/1 (key 841) naar status afgemeld

SET ECHO ON
SPOOL xnmms#33392.lst
SET DEFINE OFF

update mld_melding set mld_melding_status = 5 where mld_melding_key = 100899;

update mld_opdr set mld_statusopdr_key = 6 where mld_opdr_key = 841;

INSERT INTO fac_tracking (
                             fac_tracking_refkey,
                             fac_srtnotificatie_key,
                             fac_tracking_oms
           )
  VALUES   (841, 44,                                                 -- ordafm
                    'Opdracht op verzoek van AAFM afgemeld');

COMMIT;

update mld_melding set mld_melding_status = 6 where mld_melding_key = 100899;

COMMIT;

BEGIN adm.systrackscriptId('$Id$'); END;
/

SPOOL OFF
