PCHX#75973 -- Herimplementatie PCH

svn path=/Customer/trunk/; revision=59593
This commit is contained in:
Arthur Egberink
2023-03-14 15:46:21 +00:00
parent e6b7f9bc10
commit f3a60f7233

View File

@@ -504,7 +504,7 @@ BEGIN
ELSE
IF (v_prs_srtperslid_omschrijving IS NULL)
THEN
v_prs_srtperslid_omschrijving := 'Onbekend';
v_prs_srtperslid_omschrijving := 'Onbekend';
--v_ongeldig := 1;
fac.imp_writelog
(p_import_key,
@@ -849,7 +849,7 @@ IS
FROM pchd_imp_prs
WHERE prs_perslid_wm IS NOT NULL))
WHERE bedrijf_key IS NOT NULL AND groep IS NOT NULL;
BEGIN
SELECT DECODE (COUNT ( * ), 0, 1, COUNT ( * ))
INTO v_count_prs_actual
@@ -2479,6 +2479,45 @@ AS
t.fac_srtnotificatie_key
AND sn.fac_srtnotificatie_code = 'CUST14');
-- Overzicht van locatiegegevens om goed onderscheid te kunnen maken tussen hoofdlocaties en
-- projectlocaties (tijdelijke locaties) die als ruimte onder een hoofdlocatie hangen.
CREATE OR REPLACE VIEW pchd_v_locatie_gegevens
AS
SELECT 'Hoofdlocatie' locatietype,
alg_locatie_code,
alg_locatie_omschrijving,
alg_locatie_code hoofd_locatie_code,
alg_locatie_omschrijving hoofd_locatie_omschrijving,
alg_locatie_adres,
alg_locatie_postcode,
alg_locatie_plaats,
alg_locatie_key,
NULL alg_ruimte_key
FROM alg_locatie l
UNION ALL
SELECT 'Projectlocatie',
alg_ruimte_nr,
alg_ruimte_omschrijving,
alg_locatie_code,
alg_locatie_omschrijving,
flx.getflex ('ALG',
2101,
alg_ruimte_key,
'R') adres,
flx.getflex ('ALG',
2102,
alg_ruimte_key,
'R') postcode,
flx.getflex ('ALG',
2103,
alg_ruimte_key,
'R') plaats,
alg_locatie_key,
alg_ruimte_key
FROM alg_v_ruimte_gegevens
WHERE alg_srtruimte_key = 241;
------ payload end ------
SET DEFINE OFF