Merge pull request #22339 from fappels/develop_fix_dispatch_product

Fix dispatch product
This commit is contained in:
Laurent Destailleur 2022-09-24 11:38:10 +02:00 committed by GitHub
commit d25c2748e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2096,7 +2096,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) {