MDUX#36376 Filteren op business unit heeft niet het gewenste effect (2016.1)
svn path=/Website/branches/v2016.1/; revision=29409
This commit is contained in:
@@ -1275,7 +1275,10 @@ function bes_list (pautfunction, params)
|
||||
if (sql_date)
|
||||
sql_filter += " AND bo.bes_bestelopdr_datum" + sql_date;
|
||||
if (dep_key)
|
||||
sql_filter += " AND d.prs_afdeling_key = " + dep_key;
|
||||
sql_filter += " AND p.prs_afdeling_key IN"
|
||||
+ " (SELECT a.prs_afdeling_key"
|
||||
+ " FROM prs_v_afdeling_familie a"
|
||||
+ " WHERE a.prs_afdeling_elder_key = " + dep_key + ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user