Fix inventorycode
This commit is contained in:
parent
6f32e89b21
commit
fe501f7214
@ -2041,7 +2041,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
// $price should take into account discount (except if option STOCK_EXCLUDE_DISCOUNT_FOR_PMP is on)
|
// $price should take into account discount (except if option STOCK_EXCLUDE_DISCOUNT_FOR_PMP is on)
|
||||||
$mouv->origin = &$this;
|
$mouv->origin = &$this;
|
||||||
$mouv->setOrigin($this->element, $this->id);
|
$mouv->setOrigin($this->element, $this->id);
|
||||||
$result = $mouv->reception($user, $product, $entrepot, $qty, $price, $comment, $eatby, $sellby, $batch, $inventorycode);
|
$result = $mouv->reception($user, $product, $entrepot, $qty, $price, $comment, $eatby, $sellby, $batch, '', 0, $inventorycode);
|
||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
$this->error = $mouv->error;
|
$this->error = $mouv->error;
|
||||||
$this->errors = $mouv->errors;
|
$this->errors = $mouv->errors;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user