diff --git a/onces/PCHE/PCHE#63215.sql b/onces/PCHE/PCHE#63215.sql new file mode 100644 index 000000000..c5ace4b39 --- /dev/null +++ b/onces/PCHE/PCHE#63215.sql @@ -0,0 +1,38 @@ +-- +-- $Id: PCHE#62772.sql 36063 2020-06-15 12:50:05Z sandersc$ +-- +-- Verwijder onterecht aangemaakte facturen. + +DEFINE thisfile = 'PCHE#63215.SQL' +DEFINE dbuser = '^PCHE' + +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 ------ + +DELETE fin_verkoopfactuurkop + WHERE fin_verkoopfactuurkop_key > 27767; + +DELETE fin_verkoopfactuur + WHERE fin_verkoopfactuur_key > 22039; + +------ payload end ------ + +SET DEFINE OFF +BEGIN adm.systrackscriptId ('$Id: PCHE#62772.sql 36063 2020-06-15 12:50:05Z sandersc$', 1); END; +/ + +COMMIT; +SET ECHO OFF +SPOOL OFF +SET DEFINE ON +PROMPT Logfile of this upgrade is: &fcltlogfile + +--@@ &custid \ No newline at end of file