Fix dispatch product

This commit is contained in:
Francis Appels 2022-09-20 18:24:26 +02:00 committed by Laurent Destailleur
parent 7cafff7a09
commit 5964485159

View File

@ -2094,7 +2094,7 @@ class CommandeFournisseur extends CommonOrder
if (!empty($conf->global->SUPPLIER_ORDER_ALLOW_NEGATIVE_QTY_FOR_SUPPLIER_ORDER_RETURN) && $qty < 0) {
$result = $mouv->livraison($user, $product, $entrepot, $qty*(-1), $price, $comment, $now, $eatby, $sellby, $batch);
} else {
$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) {