Give order to inventory lines

This commit is contained in:
Aloïs Micard 2022-12-12 17:36:00 +01:00
parent 570fc5c0ed
commit 8a1df1df92

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