NYBU#64690: Rapport Geboekte items, nu ook met catering locatie (=ins deel catalogus)
svn path=/Customer/trunk/; revision=48796
This commit is contained in:
@@ -12406,31 +12406,32 @@ AS
|
||||
AND locatie.alg_locatie_key = 29 -- Vermaat doet alleen locatie Breukelen
|
||||
AND r.res_rsv_ruimte_key = r2a.res_rsv_ruimte_key(+);
|
||||
|
||||
CREATE OR REPLACE VIEW nybu_v_rap_vermaat
|
||||
CREATE OR REPLACE VIEW NYBU_V_RAP_VERMAAT
|
||||
(
|
||||
hide_f_sort,
|
||||
fclt_f_reservering,
|
||||
fclt_d_datum,
|
||||
tijd,
|
||||
artikelnr,
|
||||
fclt_f_artikel,
|
||||
fclt_f_catalogus,
|
||||
aantal,
|
||||
eenheid,
|
||||
eenheidsprijs,
|
||||
artikel_btw,
|
||||
totaalprijs_excl,
|
||||
totaalprijs_incl,
|
||||
fclt_f_pnummer,
|
||||
fclt_f_kostenplaats,
|
||||
fclt_3d_discipline_key,
|
||||
paraplu_res,
|
||||
ruimte_paraplu_res,
|
||||
van_paraplu_res,
|
||||
tot_paraplu_res,
|
||||
opmerking_paraplu_res,
|
||||
omschrijving_paraplu_res,
|
||||
dieetwensen
|
||||
HIDE_F_SORT,
|
||||
FCLT_F_RESERVERING,
|
||||
FCLT_D_DATUM,
|
||||
LOCATIE,
|
||||
TIJD,
|
||||
ARTIKELNR,
|
||||
FCLT_F_ARTIKEL,
|
||||
FCLT_F_CATALOGUS,
|
||||
AANTAL,
|
||||
EENHEID,
|
||||
EENHEIDSPRIJS,
|
||||
ARTIKEL_BTW,
|
||||
TOTAALPRIJS_EXCL,
|
||||
TOTAALPRIJS_INCL,
|
||||
FCLT_F_PNUMMER,
|
||||
FCLT_F_KOSTENPLAATS,
|
||||
FCLT_3D_DISCIPLINE_KEY,
|
||||
PARAPLU_RES,
|
||||
RUIMTE_PARAPLU_RES,
|
||||
VAN_PARAPLU_RES,
|
||||
TOT_PARAPLU_RES,
|
||||
OPMERKING_PARAPLU_RES,
|
||||
OMSCHRIJVING_PARAPLU_RES,
|
||||
DIEETWENSEN
|
||||
)
|
||||
AS
|
||||
SELECT v.res_rsv_artikel_levering
|
||||
@@ -12439,6 +12440,7 @@ AS
|
||||
fclt_f_reservering,
|
||||
v.datum
|
||||
fclt_d_datum,
|
||||
catering_loc.locatie,
|
||||
v.tijd,
|
||||
v.artikelnr,
|
||||
v.artikeloms
|
||||
@@ -12474,8 +12476,22 @@ AS
|
||||
omschrijving_paraplu_res,
|
||||
p.dieetwensen
|
||||
dieetwensen
|
||||
FROM nybu_v_vermaat v, nybu_v_rap_paraplu_res p
|
||||
WHERE p.break_rsv_ruimte_key (+) = v.res_rsv_ruimte_key;
|
||||
FROM nybu_v_vermaat v,
|
||||
nybu_v_rap_paraplu_res p,
|
||||
(SELECT DISTINCT
|
||||
rsvd.res_rsv_ruimte_key,
|
||||
disc.ins_discipline_omschrijving locatie
|
||||
FROM res_rsv_deel rsvd,
|
||||
res_deel rd,
|
||||
ins_deel d,
|
||||
ins_tab_discipline disc
|
||||
WHERE rd.res_deel_key = rsvd.res_deel_key
|
||||
AND d.ins_deel_key = rd.res_ins_deel_key
|
||||
AND disc.ins_discipline_key = rd.res_discipline_key
|
||||
AND rsvd.res_rsv_deel_verwijder IS NULL
|
||||
AND d.ins_srtdeel_key IN (1941, 1942)) catering_loc
|
||||
WHERE p.break_rsv_ruimte_key(+) = v.res_rsv_ruimte_key
|
||||
AND catering_loc.res_rsv_ruimte_key(+) = v.res_rsv_ruimte_key;
|
||||
|
||||
CREATE OR REPLACE VIEW nybu_v_rap_vermaat_cumulatief
|
||||
AS
|
||||
|
||||
Reference in New Issue
Block a user