YKPN#86368 -- Centercodes uit personenkoppeling tbv organisatie gebruiken. Aanpassing op ophalen afdeling_key en controle hierop in UPDATE_ORGANISATIE_SCHED
svn path=/Customer/trunk/; revision=67688
This commit is contained in:
@@ -3614,7 +3614,7 @@ AS
|
||||
CURSOR c
|
||||
IS
|
||||
SELECT i.*,
|
||||
(SELECT MIN(prs_afdeling_key)
|
||||
(SELECT COALESCE(MIN(prs_afdeling_key) ,-1)
|
||||
FROM prs_afdeling a, prs_kostenplaats k
|
||||
WHERE k.prs_kostenplaats_nr=i.prs_kostenplaats_nr
|
||||
AND a.prs_kostenplaats_key=k.prs_kostenplaats_key
|
||||
@@ -3764,10 +3764,10 @@ BEGIN
|
||||
END IF;
|
||||
v_prs_afd_niveau_parent := v_prs_afd_niveau_parent +1;
|
||||
|
||||
IF rec.prs_afdeling_key IS NULL
|
||||
IF rec.prs_afdeling_key = -1
|
||||
THEN
|
||||
-- toevoegen afdeling
|
||||
v_errorhint := 'Toevoegen afdeling'||rec.prs_afdeling_key;
|
||||
v_errorhint := 'Toevoegen afdeling'||rec.prs_afdeling_naam;
|
||||
|
||||
INSERT INTO prs_afdeling
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user