ARAI#62219 -- Alleen nog QR codes voor inspecties

svn path=/Customer/trunk/; revision=47048
This commit is contained in:
Robin Stoker
2020-06-04 14:42:58 +00:00
parent 4a993b0feb
commit 1fac7f58f7

View File

@@ -5046,7 +5046,7 @@ CREATE OR REPLACE VIEW arai_v_ins_qrc_inspecties
fclt_f_objectsoort, ins_alg_ruimte_type, alg_district_key, ins_deel_upper, alg_ruimte_key, hide_f_bookmark_id
)
AS
SELECT i.ins_discipline_key,
SELECT DISTINCT i.ins_discipline_key,
l.alg_locatie_key,
l.alg_locatie_omschrijving,
o.alg_gebouw_omschrijving,
@@ -5070,7 +5070,9 @@ AS
ins_srtdeel s,
alg_locatie l,
alg_district di,
fac_bookmark b
fac_bookmark b,
ins_deelsrtcontrole dc,
ins_srtcontrole sc
WHERE b.fac_bookmark_naam = 'KPI_INSPECTIES'
AND ins_deel_verwijder IS NULL
AND i.ins_deel_module = 'INS'
@@ -5081,6 +5083,9 @@ AS
AND o.alg_locatie_key = i.ins_alg_locatie_key
AND i.ins_alg_locatie_key = l.alg_locatie_key
AND l.alg_district_key = di.alg_district_key
AND sc.ctr_discipline_key = 2021 -- Inspecties
AND sc.ins_srtcontrole_niveau = 'S'
AND sc.ins_srtinstallatie_key = s.ins_srtdeel_key
AND s.ins_srtdeel_key = i.ins_srtdeel_key;
@@ -13265,7 +13270,8 @@ CREATE OR REPLACE VIEW arai_v_graph_taken_voltooid
AS
SELECT aantal, sub.totaal
FROM arai_v_graph_com_totaal,
(SELECT SUM (aantal) totaal FROM arai_v_graph_com_totaal) sub
(SELECT SUM (aantal) totaal FROM arai_v_graph_com_totaal
WHERE UPPER (status) NOT LIKE 'GEPLAND') sub
WHERE UPPER (status) = 'VOLTOOID';
CREATE OR REPLACE VIEW arai_v_rap_disco
@@ -13748,6 +13754,10 @@ AS
AND m.prs_perslid_key = p.prs_perslid_key
AND std.mld_ins_discipline_key = 2341;
-- Verwijderde views droppen
DROP VIEW ARAI_V_RAP_COMPLIANCE_DATA2;
DROP VIEW ARAI_V_RAP_COMPLIANCE_TOTALEN;
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- MJOB import
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------