sutf#57712 mobiele looplijst reserveringen
svn path=/Customer/trunk/; revision=42467
This commit is contained in:
@@ -1915,6 +1915,65 @@ AS
|
||||
FROM sutf_v_factuur_geg_akkoord fg
|
||||
ORDER BY fin_factuur_key, regelnummer);
|
||||
|
||||
--Vieuws voor looplijst reserveringen Mobiel
|
||||
CREATE OR REPLACE VIEW sutf_v_rap_res_looplijst
|
||||
AS
|
||||
SELECT DISTINCT
|
||||
TO_CHAR (rr.res_rsv_ruimte_van, 'yyyy-mm-dd')
|
||||
|| rg.alg_gebouw_upper
|
||||
|| TO_CHAR (rr.res_rsv_ruimte_van, 'hh24:mi')
|
||||
hide_f_srt,
|
||||
rr.res_reservering_key || '/' || rr.res_rsv_ruimte_volgnr nr,
|
||||
rg.alg_gebouw_omschrijving fclt_f_gebouw,
|
||||
rr.res_rsv_ruimte_van datum,
|
||||
TO_CHAR (rr.res_rsv_ruimte_van, 'hh24:mi') begintijd,
|
||||
TO_CHAR (rr.res_rsv_ruimte_tot, 'hh24:mi') eindtijd,
|
||||
r.res_ruimte_nr fclt_f_ruimte,
|
||||
o.res_opstelling_omschrijving opstelling,
|
||||
rr.res_rsv_ruimte_bezoekers aantal,
|
||||
rr.res_rsv_ruimte_omschrijving omschrijving,
|
||||
mld.aant Meldingen,
|
||||
voorzieningen,
|
||||
rr.res_rsv_ruimte_key
|
||||
FROM res_rsv_ruimte rr,
|
||||
res_ruimte_opstelling ro,
|
||||
res_opstelling o,
|
||||
res_ruimte r,
|
||||
res_alg_ruimte ar,
|
||||
alg_v_ruimte_gegevens rg,
|
||||
( SELECT res_rsv_ruimte_key,
|
||||
'Ja (' || COUNT (res_rsv_ruimte_key) || ')' aant
|
||||
FROM mld_melding
|
||||
WHERE res_rsv_ruimte_key IS NOT NULL
|
||||
GROUP BY res_rsv_ruimte_key) mld,
|
||||
( SELECT res_rsv_ruimte_key,
|
||||
LISTAGG (voorziening, CHR (13) || CHR (10))
|
||||
WITHIN GROUP (ORDER BY voorziening)
|
||||
AS Voorzieningen
|
||||
FROM (SELECT res_rsv_ruimte_key,
|
||||
res_deel_omschrijving voorziening
|
||||
FROM res_deel rd, res_rsv_deel rrd
|
||||
WHERE RES_RSV_DEEL_verwijder IS NULL
|
||||
AND rd.res_deel_key = rrd.res_deel_key
|
||||
AND res_rsv_ruimte_key IS NOT NULL)
|
||||
GROUP BY res_rsv_ruimte_key) voorz
|
||||
WHERE rr.res_rsv_ruimte_verwijder IS NULL
|
||||
AND ro.res_ruimte_opstel_key = rr.res_ruimte_opstel_key
|
||||
AND o.res_opstelling_key = ro.res_opstelling_key
|
||||
AND r.res_ruimte_key = ro.res_ruimte_key
|
||||
AND ar.res_ruimte_key = r.res_ruimte_key
|
||||
AND ar.res_alg_ruimte_verwijder IS NULL
|
||||
AND rg.alg_ruimte_key = ar.alg_ruimte_key
|
||||
AND mld.res_rsv_ruimte_key(+) = rr.res_rsv_ruimte_key
|
||||
AND voorz.res_rsv_ruimte_key(+) = rr.res_rsv_ruimte_key;
|
||||
|
||||
|
||||
CREATE OR REPLACE VIEW sutf_v_rap_mob_looplijst
|
||||
AS
|
||||
SELECT *
|
||||
FROM sutf_v_rap_res_looplijst
|
||||
WHERE TRUNC (datum) = TRUNC (SYSDATE);
|
||||
|
||||
|
||||
|
||||
CREATE OR REPLACE VIEW sutf_v_export_fclt_factuur (
|
||||
|
||||
Reference in New Issue
Block a user