mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-25 18:23:21 +01:00
Fix missing inventorycode
This commit is contained in:
@@ -2092,7 +2092,7 @@ class CommandeFournisseur extends CommonOrder
|
||||
|
||||
// Method change if qty < 0
|
||||
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);
|
||||
$result = $mouv->livraison($user, $product, $entrepot, $qty*(-1), $price, $comment, $now, $eatby, $sellby, $batch, 0, $inventorycode);
|
||||
} else {
|
||||
$result = $mouv->reception($user, $product, $entrepot, $qty, $price, $comment, $eatby, $sellby, $batch, '', 0, $inventorycode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user