FSN#53649 Performance: RES objecten en ruimtes er niet bij slepen als je groepeert op Artikel

svn path=/Website/branches/v2017.3/; revision=38343
This commit is contained in:
Jos Groot Lipman
2018-06-27 12:11:33 +00:00
parent 9c22ad7654
commit 1a51d2997b

View File

@@ -1621,14 +1621,14 @@ function res_list (pautfunction, params)
2);
var sql_from_total = "";
if (res_key || roomcat)
if (res_key || (roomcat && groupres != 7 && groupres != 8)) // Niet als je groepeert op artikel
{
sql_from_total += "/* Ruimtes */ " + sql_from_room_part;
if (res_key || objcat || artcat)
sql_from_total += " \nUNION ALL\n "
}
if (res_key || objcat)
if (res_key || (objcat && groupres != 7 && groupres != 8)) // Niet als je groepeert op artikel
{
sql_from_total += "/* Objecten */ " + sql_from_obj_part;
if (res_key || artcat)