/* Formatted on 9-11-2017 16:54:31 (QP5 v5.136.908.31019) */
--
-- $Id$
--
-- Eenmalig acties tbv Import van Besteding

DEFINE thisfile = 'LOGC#56845.SQL'
DEFINE dbuser   = '^LOGC'

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 ------
-- pas de personeelsnummers aan.
UPDATE prs_perslid SET prs_perslid_nr = '574' WHERE prs_perslid_key = 	296	;
UPDATE prs_perslid SET prs_perslid_nr = '575' WHERE prs_perslid_key = 	297	;
UPDATE prs_perslid SET prs_perslid_nr = '576' WHERE prs_perslid_key = 	298	;
UPDATE prs_perslid SET prs_perslid_nr = '577' WHERE prs_perslid_key = 	299	;
UPDATE prs_perslid SET prs_perslid_nr = '578' WHERE prs_perslid_key = 	300	;
UPDATE prs_perslid SET prs_perslid_nr = '579' WHERE prs_perslid_key = 	301	;
UPDATE prs_perslid SET prs_perslid_nr = '580' WHERE prs_perslid_key = 	302	;
UPDATE prs_perslid SET prs_perslid_nr = '581' WHERE prs_perslid_key = 	306	;
UPDATE prs_perslid SET prs_perslid_nr = '582' WHERE prs_perslid_key = 	303	;
UPDATE prs_perslid SET prs_perslid_nr = '583' WHERE prs_perslid_key = 	305	;
UPDATE prs_perslid SET prs_perslid_nr = '584' WHERE prs_perslid_key = 	309	;
UPDATE prs_perslid SET prs_perslid_nr = '585' WHERE prs_perslid_key = 	668	;
UPDATE prs_perslid SET prs_perslid_nr = '586' WHERE prs_perslid_key = 	669	;
UPDATE prs_perslid SET prs_perslid_nr = '587' WHERE prs_perslid_key = 	670	;
UPDATE prs_perslid SET prs_perslid_nr = '588' WHERE prs_perslid_key = 	672	;
UPDATE prs_perslid SET prs_perslid_nr = '589' WHERE prs_perslid_key = 	1461	;
UPDATE prs_perslid SET prs_perslid_nr = '590' WHERE prs_perslid_key = 	1741	;
UPDATE prs_perslid SET prs_perslid_nr = '591' WHERE prs_perslid_key = 	1901	;
UPDATE prs_perslid SET prs_perslid_nr = '592' WHERE prs_perslid_key = 	2041	;
UPDATE prs_perslid SET prs_perslid_nr = '593' WHERE prs_perslid_key = 	2121	;

-- wijzig de personeelsnummers in de uren import tabel.
UPDATE logc_imp_uren_besteding SET werknemer =	574	 WHERE werknemer = 	2	;
UPDATE logc_imp_uren_besteding SET werknemer =	575	 WHERE werknemer = 	3	;
UPDATE logc_imp_uren_besteding SET werknemer =	576	 WHERE werknemer = 	4	;
UPDATE logc_imp_uren_besteding SET werknemer =	577	 WHERE werknemer = 	5	;
UPDATE logc_imp_uren_besteding SET werknemer =	578	 WHERE werknemer = 	6	;
UPDATE logc_imp_uren_besteding SET werknemer =	579	 WHERE werknemer = 	7	;
UPDATE logc_imp_uren_besteding SET werknemer =	580	 WHERE werknemer = 	8	;
UPDATE logc_imp_uren_besteding SET werknemer =	581	 WHERE werknemer = 	13	;
UPDATE logc_imp_uren_besteding SET werknemer =	582	 WHERE werknemer = 	16	;
UPDATE logc_imp_uren_besteding SET werknemer =	583	 WHERE werknemer = 	19	;
UPDATE logc_imp_uren_besteding SET werknemer =	584	 WHERE werknemer = 	20	;
UPDATE logc_imp_uren_besteding SET werknemer =	585	 WHERE werknemer = 	21	;
UPDATE logc_imp_uren_besteding SET werknemer =	586	 WHERE werknemer = 	23	;
UPDATE logc_imp_uren_besteding SET werknemer =	587	 WHERE werknemer = 	24	;
UPDATE logc_imp_uren_besteding SET werknemer =	588	 WHERE werknemer = 	25	;
UPDATE logc_imp_uren_besteding SET werknemer =	589	 WHERE werknemer = 	28	;
UPDATE logc_imp_uren_besteding SET werknemer =	590	 WHERE werknemer = 	30	;
UPDATE logc_imp_uren_besteding SET werknemer =	591	 WHERE werknemer = 	31	;
UPDATE logc_imp_uren_besteding SET werknemer =	592	 WHERE werknemer = 	32	;
UPDATE logc_imp_uren_besteding SET werknemer =	593	 WHERE werknemer = 	33	;

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