VGLD#61390 Nieuw export creditors.xml

svn path=/Customer/; revision=45861
This commit is contained in:
Suzan Wiegerinck
2020-02-17 10:57:06 +00:00
parent d81d05b000
commit 390405764c

40
onces/VGLD/VGLD#61390.sql Normal file
View File

@@ -0,0 +1,40 @@
--
-- $Id$
--
-- reanimeren externe bedrijven die door foutieve import (leeg import bestand) afgelopen weekend zijn verwijderd
-- VGLD#61390: Nieuw export creditors.xml
DEFINE thisfile = 'VGLD#61390.SQL'
DEFINE dbuser = '^VGLD'
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 ------
UPDATE prs_bedrijf b
SET b.prs_bedrijf_verwijder = NULL
WHERE b.prs_bedrijf_verwijder > TRUNC (SYSDATE - 3);
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