IDEMPIERE-1966 Configured sql-order-by statement in product info not taken into account when warehouse is selected

This commit is contained in:
Carlos Augusto Sanchez 2014-05-27 17:00:55 -05:00
parent 8efef1cb7d
commit c6b0cd00f9
1 changed files with 1 additions and 1 deletions

View File

@ -841,7 +841,7 @@ public class InfoProductWindow extends InfoWindow {
@Override
protected void prepareTable(ColumnInfo[] layout, String from, String where,
String orderBy) {
if (getSelectedWarehouseId() > 0)
if (Util.isEmpty(orderBy) && getSelectedWarehouseId() > 0)
{
orderBy = "QtyAvailable DESC";
}