Merge pull request #23196 from vold-lu/order_inventory_det

FIX: Give predictable order to inventory lines
This commit is contained in:
Laurent Destailleur 2022-12-14 00:19:41 +01:00 committed by GitHub
commit 9087fb937d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();