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

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

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

-- BLCC#69650
-- Alle FES tarieven op de gebouwen (1.9%)!
UPDATE alg_onrgoedkenmerk ok
   SET ok.alg_onrgoedkenmerk_waarde = 1.019 * ok.alg_onrgoedkenmerk_waarde
 WHERE ok.alg_onrgoedkenmerk_verwijder IS NULL
       AND alg_kenmerk_key IN
                (1220, 1221, 1222, 1223, 1224, 1245) -- FES Subsidie L/H/K/O/T/C
;
COMMIT;

------ 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
