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

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