IDEMPIERE-1966 Configured sql-order-by statement in product info not taken into account when warehouse is selected
This commit is contained in:
parent
8efef1cb7d
commit
c6b0cd00f9
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue