inventory fix for quFactorPurchaseToStock - defaults to product details (#1081)

This commit is contained in:
kriddles
2020-10-26 04:10:10 -05:00
committed by GitHub
parent 7ef9ffe041
commit fb17c57dd3

View File

@@ -720,7 +720,7 @@ class StockService extends BaseService
$bookingAmount = $newAmount; $bookingAmount = $newAmount;
} }
return $this->AddProduct($productId, $bookingAmount, $bestBeforeDate, self::TRANSACTION_TYPE_INVENTORY_CORRECTION, date('Y-m-d'), $price, $locationId, $shoppingLocationId); return $this->AddProduct($productId, $bookingAmount, $bestBeforeDate, self::TRANSACTION_TYPE_INVENTORY_CORRECTION, date('Y-m-d'), $price, null, $locationId, $shoppingLocationId);
} }
elseif ($newAmount < $productDetails->stock_amount + $containerWeight) elseif ($newAmount < $productDetails->stock_amount + $containerWeight)
{ {