BAMG#69593 -- Contract data uit Facilitor plaatsen op de landkaart.
svn path=/Customer/trunk/; revision=57991
This commit is contained in:
@@ -663,7 +663,7 @@ BEGIN
|
||||
END;
|
||||
END LOOP;
|
||||
|
||||
-- De logging in de imp_log tabel wordt te snel verwijderd. Daarom zetten we de warn+ings, errors en informatie loggings maar
|
||||
-- De logging in de imp_log tabel wordt te snel verwijderd. Daarom zetten we de wa+rnings, errors en informatie loggings maar
|
||||
-- in de fac_rapport tabel.
|
||||
INSERT INTO fac_rapport (fac_rapport_node,
|
||||
fac_rapport_volgnr,
|
||||
@@ -1034,6 +1034,37 @@ AS
|
||||
'Facilitair') srtgebouw
|
||||
FROM alg_v_locatie_gegevens lg;
|
||||
|
||||
-- Test rapportage om de resterende looptijd van een contract in Facilitor zichtbaar te maken.
|
||||
CREATE OR REPLACE VIEW bamg_v_huurcontract_xy
|
||||
AS
|
||||
SELECT c.cnt_contract_key,
|
||||
g.alg_gebouw_key,
|
||||
g.alg_gebouw_key
|
||||
geb_key,
|
||||
ROUND ((MIN (cnt_contract_looptijd_tot) - SYSDATE) / 365, 1)
|
||||
resterende_looptijd,
|
||||
alg_gebouw_omschrijving
|
||||
contract_gebouw
|
||||
FROM cnt_contract c,
|
||||
alg_gebouw g,
|
||||
( SELECT cnt_contract_key, MIN (alg_gebouw_key) alg_gebouw_key
|
||||
FROM cnt_contract_plaats, alg_gebouw
|
||||
WHERE cnt_alg_plaats_code = 'L'
|
||||
AND cnt_alg_plaats_key = alg_locatie_key
|
||||
AND alg_gebouw_x IS NOT NULL
|
||||
AND cnt_contract_plaats_verwijder IS NULL
|
||||
GROUP BY cnt_contract_key
|
||||
UNION ALL
|
||||
SELECT cnt_contract_key, cnt_alg_plaats_key alg_gebouw_key
|
||||
FROM cnt_contract_plaats
|
||||
WHERE cnt_alg_plaats_code = 'G'
|
||||
AND cnt_contract_plaats_verwijder IS NULL) cp
|
||||
WHERE ins_discipline_key = 181
|
||||
AND cnt_contract_verwijder IS NULL
|
||||
AND c.cnt_contract_key = cp.cnt_contract_key
|
||||
AND cp.alg_gebouw_key = g.alg_gebouw_key
|
||||
GROUP BY c.cnt_contract_key, g.alg_gebouw_key, alg_gebouw_omschrijving;
|
||||
|
||||
|
||||
-- BAMG#73122 Nieuwe rapportage BAM locaties in beheer CHV
|
||||
CREATE OR REPLACE VIEW bamg_v_rap_loc_beheer_chv
|
||||
|
||||
Reference in New Issue
Block a user