Fix inventorycode

This commit is contained in:
Laurent Destailleur 2022-09-24 11:42:05 +02:00
parent 6f32e89b21
commit fe501f7214

View File

@ -2041,7 +2041,7 @@ class CommandeFournisseur extends CommonOrder
// $price should take into account discount (except if option STOCK_EXCLUDE_DISCOUNT_FOR_PMP is on)
$mouv->origin = &$this;
$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) {
$this->error = $mouv->error;
$this->errors = $mouv->errors;