VLKC#55659 Akkoord-facturen t/m 2018 op status Verwerkt

svn path=/Customer/; revision=40508
This commit is contained in:
Maarten van der Heide
2019-01-11 12:14:24 +00:00
parent 12ef76a25c
commit 89b520d851

36
onces/VLKC/VLKC#55659.sql Normal file
View File

@@ -0,0 +1,36 @@
--
-- $Id$
--
-- Customer specific once-script VLKC#53893.SQL.
DEFINE thisfile = 'VLKC#55659.SQL'
DEFINE dbuser = '^VLKC'
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 ------
UPDATE fin_factuur f
SET f.fin_factuur_statuses_key = 7 -- AV
WHERE f.cnt_contract_key IS NOT NULL -- Factuur op contract
AND f.fin_factuur_statuses_key = 6 -- Akkoord
AND fac.gettrackingdate ('FINFOK', f.fin_factuur_key) < TO_DATE ('01012019', 'ddmmyyyy');
------ 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