PCHE#38636 -- Punten uit evaluatie Strijp-S

svn path=/Customer/trunk/; revision=31835
This commit is contained in:
Arthur Egberink
2016-12-05 14:50:00 +00:00
parent 3b8596c6e3
commit e2ddec1397

View File

@@ -1,32 +1,23 @@
-- Script containing customer specific configuration sql statements for PCHE (Eindhoven Strijp-S)
-- (c) 2008 Facilitor
-- $Revision$
--
-- $Id$
--
-- Support: +31 53 4800700
-- Script containing customer specific configuration sql statements for PCHE (Eindhoven Strijp-S)
DEFINE thisfile = 'PCHE.SQL'
DEFINE dbuser = '^PCHE'
DEFINE custid = 'PCHE'
SET ECHO ON
SET DEFINE ON
column fcltlogfile new_value fcltlogfile NOPRINT;
select UPPER(USER) || '_PCHE' || to_char(sysdate,'YYYYMMDD_HH24MISS') || '.lst' as fcltlogfile from dual;
spool &fcltlogfile
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 ------
WHENEVER SQLERROR EXIT;
DECLARE
tekst VARCHAR2 (1000);
BEGIN
IF SUBSTR(UPPER(USER),1,4) <> 'PCHE' THEN
tekst := '=================================================================' || CHR(10)
|| 'Foute user!!!!!!!!!' || CHR(10)
|| 'User moet zijn PCHE en is ' || SUBSTR(UPPER(USER),1,4) || CHR(10)
|| '=================================================================' || CHR(10);
RAISE_APPLICATION_ERROR(-20000, tekst);
END IF;
END;
/
WHENEVER SQLERROR CONTINUE;
/* grootboekrekeningen:
Grootboek Omschrijving
@@ -1626,12 +1617,14 @@ AS
|| '")''>'
|| 'pdf'
|| '</a>'
html_pdf
html_pdf,
DECODE(fin_verkoopfactuur_d1, NULL, 'NEE', 'JA') volledig_betaald_jn
FROM fin_verkoopfactuur;
CREATE OR REPLACE VIEW pche_my_v_verkoopfactuur
AS
SELECT p.prs_perslid_key fclt_3d_user_key,
SELECT SYSDATE - fin_verkoopfactuur_aanmaak hide_f_volgorde,
p.prs_perslid_key fclt_3d_user_key,
fin_verkoopfactuur_key,
fin_verkoopfactuur_aanmaak,
fin_verkoopfactuur_id,
@@ -1975,11 +1968,14 @@ EXCEPTION
END;
/
SHOW ERRORS
------ payload end ------
BEGIN fac.registercustversion('PCHE', 16); END;
/
BEGIN adm.systrackscriptId('$Id$', 0); END;
SET DEFINE OFF
BEGIN adm.systrackscriptId ('$Id$', 0); END;
/
COMMIT;
SET ECHO OFF
SPOOL OFF
SET DEFINE ON
PROMPT Logfile of this upgrade is: &fcltlogfile