From 31df94c7e8420719e79e1f77d039a154f74fc0fb Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 23 Mar 2007 20:57:31 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20la=20d=E9cr=E9mentation=20des=20sous-pro?= =?UTF-8?q?duits=20ne=20prenait=20pas=20en=20compte=20la=20quantit=E9=20du?= =?UTF-8?q?=20produit=20=20final?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/commande.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index d1fff65736b..3aca5ff3f86 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -278,7 +278,7 @@ class Commande extends CommonObject // on décompte le stock de tous les sousproduits $mouvS = new MouvementStock($this->db); $entrepot_id = "1"; //Todo: ajouter possibilité de choisir l'entrepot - $result=$mouvS->livraison($user, $value[1], $entrepot_id, $value[0]); + $result=$mouvS->livraison($user, $value[1], $entrepot_id, $value[0]*$this->lignes[$i]->qty); } } } @@ -342,7 +342,7 @@ class Commande extends CommonObject // on décompte le stock de tous les sousproduits $mouvS = new MouvementStock($this->db); $entrepot_id = "1"; //Todo: ajouter possibilité de choisir l'entrepot - $result=$mouvS->reception($user, $value[1], $entrepot_id, $value[0]); + $result=$mouvS->reception($user, $value[1], $entrepot_id, $value[0]*$this->lignes[$i]->qty); } } } @@ -393,7 +393,7 @@ class Commande extends CommonObject // on décompte le stock de tous les sousproduits $mouvS = new MouvementStock($this->db); $entrepot_id = "1"; - $result=$mouvS->livraison($user, $value[1], $entrepot_id, $value[0]); + $result=$mouvS->livraison($user, $value[1], $entrepot_id, $value[0]*$this->lignes[$i]->qty); } } // on décompte pas le stock du produit principal, ça serait fait manuellement avec l'expédition @@ -443,7 +443,7 @@ class Commande extends CommonObject // on décompte le stock de tous les sousproduits $mouvS = new MouvementStock($this->db); $entrepot_id = "1"; //Todo: ajouter possibilité de choisir l'entrepot - $result=$mouvS->reception($user, $value[1], $entrepot_id, $value[0]); + $result=$mouvS->reception($user, $value[1], $entrepot_id, $value[0]*$this->lignes[$i]->qty); } } }