IDEMPIERE-5525 GetWarehouse method ordering storage records by M_Locator_ID (#1941)

This commit is contained in:
hengsin 2023-07-16 21:12:59 +08:00 committed by GitHub
parent a526c7423e
commit 8786d8a51f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -471,7 +471,7 @@ public class MStorageOnHand extends X_M_StorageOnHand
}
else
{
sql += " ORDER BY l.PriorityNo DESC, l.M_Locator_ID, s.DateMaterialPolicy";
sql += " ORDER BY l.PriorityNo DESC, s.DateMaterialPolicy";
if (!FiFo)
sql += " DESC, s.M_AttributeSetInstance_ID DESC ";
else
@ -620,7 +620,7 @@ public class MStorageOnHand extends X_M_StorageOnHand
}
else
{
sql += " ORDER BY l.PriorityNo DESC, l.M_Locator_ID, s.DateMaterialPolicy";
sql += " ORDER BY l.PriorityNo DESC, s.DateMaterialPolicy";
if (!FiFo)
sql += " DESC, s.M_AttributeSetInstance_ID DESC ";
else