--
-- $Id$
--
-- Customer specific once-script BLCC#87087.SQL.
DEFINE thisfile = 'BLCC#87087.sql'
DEFINE dbuser   = '^BLCC'

SET ECHO ON
SET DEFINE ON
COLUMN fcltlogfile NEW_VALUE fcltlogfile NOPRINT;
COLUMN fcltcusterr NEW_VALUE fcltcusterr NOPRINT;
WHENEVER SQLERROR CONTINUE;
SELECT adm.getscriptspoolfile('&thisfile') AS fcltlogfile FROM DUAL;
SPOOL &fcltlogfile
WHENEVER SQLERROR EXIT;
SELECT adm.checkscriptcust('&dbuser') AS fcltcusterr FROM DUAL;
WHENEVER SQLERROR CONTINUE;
PROMPT &fcltcusterr
SET DEFINE OFF

------ payload begin ------

-- BLCC#87087: Wijzigen eerdere tracking door BLCC#86198_2.sql.
UPDATE fac_tracking
   SET fac_tracking_oms = REPLACE (fac_tracking_oms, '(4,4%)', '(8,225%)')
 WHERE fac_srtnotificatie_key = 114                                  -- ALGGUP
       AND TRUNC (fac_tracking_datum) = fac.safe_to_date ('10-12-2024', 'dd-mm-yyyy')
       AND INSTR (fac_tracking_oms, 'Eerdere indexatie (4,4%) teruggedraaid') > 0;

------ payload end   ------

SET DEFINE OFF
BEGIN adm.systrackscriptId ('$Id$', 1); END;
/

COMMIT;
SET ECHO OFF
SPOOL OFF
SET DEFINE ON
PROMPT Logfile of this upgrade is: &fcltlogfile
