Fix order on saving inventory

This commit is contained in:
Rémi Champlon 2023-09-29 09:30:08 +02:00 committed by Laurent Destailleur
parent 7acb528829
commit a0c1553420

View file

@ -265,6 +265,7 @@ if (empty($reshook)) {
$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 .= $db->order('id.rowid', 'ASC');
$sql .= $db->plimit($limit, $offset);
$db->begin();