ASDL#41666 -- Verwijderde locaties niet tonen in Rapportateges

svn path=/Customer/trunk/; revision=34976
This commit is contained in:
Arthur Egberink
2017-08-17 08:06:51 +00:00
parent cf0b66faaf
commit 4a670a8380

View File

@@ -649,6 +649,7 @@ SELECT r.alg_regio_key,
alg_regio r,
prs_v_perslid_fullnames pf
WHERE idc.alg_locatie_key = l.alg_locatie_key
AND l.alg_locatie_verwijder IS NULL
AND l.alg_district_key = di.alg_district_key
AND di.alg_regio_key = r.alg_regio_key
AND idc.prs_perslid_key = pf.prs_perslid_key;
@@ -948,6 +949,7 @@ AS
GROUP BY ins_alg_locatie_key, ins_srtcontroledl_xcp_bits) dcg
WHERE l.alg_locatie_key = dcg.alg_locatie_key
AND ins_deelsrtcontrole_datum >= TO_DATE ('20160701', 'yyyymmdd') -- we zijn het contract op 1 juli begonnen
AND l.alg_locatie_verwijder IS NULL
AND l.alg_district_key = d.alg_district_key
AND BITAND (ins_srtcontroledl_xcp_bits, dsc.mask) <> 0;