diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 97656bd14b5..04d6fa8ac06 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -213,7 +213,7 @@ class Commande $mouvS = new MouvementStock($this->db); $entrepot_id = "1"; - $result=$mouvS->livraison($user, $this->lignes[$i]->product_id, $entrepot_id, $value[1]); + $result=$mouvS->livraison($user, $value[0], $entrepot_id, $value[1]); /* print "::".$value[1]; print $result;