Merge pull request #23196 from vold-lu/order_inventory_det
FIX: Give predictable order to inventory lines
This commit is contained in:
commit
9087fb937d
@ -640,6 +640,7 @@ if ($object->id > 0) {
|
||||
$sql .= ' id.fk_product, id.batch, id.qty_stock, id.qty_view, id.qty_regulated';
|
||||
$sql .= ' FROM '.MAIN_DB_PREFIX.'inventorydet as id';
|
||||
$sql .= ' WHERE id.fk_inventory = '.((int) $object->id);
|
||||
$sql .= ' ORDER BY id.rowid';
|
||||
|
||||
$cacheOfProducts = array();
|
||||
$cacheOfWarehouses = array();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user