BLST#66395 Implementatie belastingdienst
svn path=/Customer/trunk/; revision=54179
This commit is contained in:
@@ -4544,7 +4544,7 @@ BEGIN
|
||||
AND itd.ins_discipline_key = fgr.ins_discipline_key
|
||||
AND itd.ins_discipline_key = art.ins_discipline_key;
|
||||
|
||||
IF v_extern = 1
|
||||
IF v_extern = 1
|
||||
AND INSTR (UPPER (v_kostensoort), 'CATERING EXCL. BTW') > 0
|
||||
THEN
|
||||
v_prijs := rec.excprijs; -- ex btw prijs
|
||||
@@ -4587,11 +4587,15 @@ BEGIN
|
||||
THEN
|
||||
|
||||
-- Uitwelke catalogus komt dit artikel
|
||||
SELECT COALESCE(ra.res_artikel_key,0)
|
||||
INTO v_artikel_key
|
||||
FROM res_artikel ra
|
||||
SELECT COALESCE(ra.res_artikel_key,0),COALESCE(pk.prs_kostensoort_oms,'NB')
|
||||
INTO v_artikel_key, v_kostensoort
|
||||
FROM res_artikel ra,
|
||||
ins_tab_discipline itd,
|
||||
prs_kostensoort pk
|
||||
WHERE ra.res_artikel_nr = rec.imp_artikel_nr
|
||||
AND ra.res_artikel_verwijder IS NULL
|
||||
AND itd.ins_discipline_key=ra.res_discipline_key
|
||||
AND itd.prs_kostensoort_key = pk.prs_kostensoort_key(+)
|
||||
AND ra.res_discipline_key IN
|
||||
(SELECT itd.ins_discipline_key
|
||||
FROM res_rsv_ruimte res,
|
||||
@@ -4607,7 +4611,8 @@ BEGIN
|
||||
AND fgr.fac_groep_key = fg.fac_groep_key
|
||||
AND itd.ins_discipline_key = fgr.ins_discipline_key
|
||||
AND UPPER(itd.ins_discipline_externnr)='CATERING');
|
||||
IF v_extern = 1
|
||||
|
||||
IF v_extern = 1 AND INSTR (UPPER (v_kostensoort), 'CATERING EXCL. BTW') > 0
|
||||
THEN
|
||||
v_prijs := rec.excprijs; -- ex btw prijs
|
||||
ELSE
|
||||
@@ -5146,19 +5151,24 @@ AS
|
||||
AND d.ins_alg_ruimte_type = 'R') d
|
||||
WHERE r.alg_ruimte_key = d.ins_alg_ruimte_key(+);
|
||||
|
||||
--- Vanaf hier de rapportages voor het dashboard
|
||||
----------------------------------------------------
|
||||
--- Vanaf hier de rapportages voor het dashboard ---
|
||||
----------------------------------------------------
|
||||
|
||||
---- BLST_V_RAP_AANVR_GEBOUW is de 'basis' view voor KPI5 uit de DVR
|
||||
CREATE OR REPLACE VIEW BLST_V_RAP_AANVR_GEBOUW
|
||||
(
|
||||
locatie_code,
|
||||
locatie,
|
||||
locatie_omschrijving,
|
||||
plaats,
|
||||
gebouw_key,
|
||||
alg_gebouw_key,
|
||||
gebouw_code,
|
||||
gebouw_naam,
|
||||
gebouw,
|
||||
vakgroeptype,
|
||||
vakgroep,
|
||||
datum_afgemeld,
|
||||
melding_key,
|
||||
melding_telling,
|
||||
sla_optijd
|
||||
)
|
||||
AS
|
||||
@@ -5172,6 +5182,7 @@ AS
|
||||
vg.ins_discipline_omschrijving vakgroep,
|
||||
x.afgemeld,
|
||||
m.mld_melding_key melding_key,
|
||||
1 melding_telling,
|
||||
CASE
|
||||
WHEN DECODE (
|
||||
x.t_doorlooptijd.eenheid,
|
||||
@@ -5222,7 +5233,42 @@ AS
|
||||
AND m.mld_alg_onroerendgoed_keys = og.alg_onroerendgoed_keys(+)
|
||||
AND m.mld_melding_key = x.mld_melding_key
|
||||
AND UPPER (mg.mld_stdmeldinggroep_oms) LIKE 'AANVRAGEN%';
|
||||
|
||||
|
||||
-- Aanvragen (conform KPI 5 DVR)
|
||||
CREATE OR REPLACE VIEW BLST_V_RAP_KPI5_DVR
|
||||
(
|
||||
LOCATIE_CODE,
|
||||
LOCATIE_OMSCHRIJVING,
|
||||
PLAATS,
|
||||
ALG_GEBOUW_KEY,
|
||||
GEBOUW_CODE,
|
||||
GEBOUW,
|
||||
HTML_DETAILS,
|
||||
MELDING,
|
||||
MLD_TELLING,
|
||||
DATUM_AFGEMELD,
|
||||
SLA_OPTIJD
|
||||
)
|
||||
AS
|
||||
SELECT locatie_code,
|
||||
locatie_omschrijving,
|
||||
plaats,
|
||||
alg_gebouw_key,
|
||||
gebouw_code,
|
||||
gebouw,
|
||||
'<a class="details" onclick=''FcltMgr.openDetail("appl/fac/fac_report.asp?usrrap_key=141&'
|
||||
|| 'mode=list&'
|
||||
|| 'alg_gebouw_key='
|
||||
|| alg_gebouw_key
|
||||
|| '")''>'
|
||||
|| gebouw
|
||||
|| '</a>' AS html_details,
|
||||
melding_key,
|
||||
1 mld_count,
|
||||
datum_afgemeld,
|
||||
sla_optijd
|
||||
FROM blst_v_rap_aanvr_gebouw;
|
||||
|
||||
------ payload end ------
|
||||
|
||||
SET DEFINE OFF
|
||||
|
||||
Reference in New Issue
Block a user