KFNS#38873 Locatie en District filter voor putorders toegevoegd
svn path=/Website/trunk/; revision=33328
This commit is contained in:
@@ -1052,6 +1052,11 @@ if (isNew ||
|
||||
+ " FROM prs_bedrijfadres"
|
||||
+ " WHERE prs_bedrijfadres_type = 'O'"
|
||||
+ " AND (mld_typeopdr_key IS NULL OR mld_typeopdr_key = " + t_opdr + ")"
|
||||
+ " AND (alg_locatie_key = " + mld_info.loc_key + " OR alg_locatie_key IS NULL)"
|
||||
+ " AND (alg_district_key = (SELECT d.alg_district_key"
|
||||
+ " FROM alg_locatie d"
|
||||
+ " WHERE d.alg_locatie_key = " + mld_info.loc_key + ")"
|
||||
+ " OR alg_district_key IS NULL)"
|
||||
+ " AND prs_bedrijf_key = " + uitvoerende;
|
||||
oRs = Oracle.Execute(sql);
|
||||
// Als (1) externe uitvoerder met (2) prs_bedrijfadres_url type O dan vragen
|
||||
|
||||
Reference in New Issue
Block a user