FSN#38658 Onderdrukken bestellingen zonder bestelregels
svn path=/Website/trunk/; revision=31859
This commit is contained in:
@@ -146,6 +146,7 @@ function fncolHeader(oRs)
|
||||
+ " b.bes_bestelling_status"
|
||||
+ " FROM bes_bestelling b "
|
||||
+ " WHERE b.bes_bestelling_status IN (5, 4, 3, 2) AND b.fac_activiteit_key IS NULL "
|
||||
+ " AND EXISTS (SELECT 1 FROM bes_bestelling_item bi WHERE bi.bes_bestelling_key = b.bes_bestelling_key)"
|
||||
+ " AND (b.prs_perslid_key_voor = " + user_key
|
||||
+ " OR b.prs_perslid_key = " + user_key + ")"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user