Modif dispatching
This commit is contained in:
parent
70c8a0d21a
commit
5112d47142
@ -728,7 +728,7 @@ class CommandeFournisseur extends Commande
|
||||
return $res;
|
||||
}
|
||||
|
||||
function DispatchProduct($user, $product, $qty, $entrepot)
|
||||
function DispatchProduct($user, $product, $qty, $entrepot, $price=0)
|
||||
{
|
||||
global $conf;
|
||||
$error = 0;
|
||||
@ -756,7 +756,7 @@ class CommandeFournisseur extends Commande
|
||||
* Enregistrement d'un mouvement de stock pour chaque produit de l'expedition
|
||||
*/
|
||||
$mouv = new MouvementStock($this->db);
|
||||
$result=$mouv->reception($user, $product, $entrepot, $qty);
|
||||
$result=$mouv->reception($user, $product, $entrepot, $qty, $price);
|
||||
if ($result < 0)
|
||||
{
|
||||
$this->error=$this->db->error()." - sql=$sql";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user