From fb17c57dd3efdabe6b92a951360bec86c3d32dc3 Mon Sep 17 00:00:00 2001 From: kriddles <54413450+kriddles@users.noreply.github.com> Date: Mon, 26 Oct 2020 04:10:10 -0500 Subject: [PATCH] inventory fix for quFactorPurchaseToStock - defaults to product details (#1081) --- services/StockService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/StockService.php b/services/StockService.php index a87dc3ef..1a6d5c38 100644 --- a/services/StockService.php +++ b/services/StockService.php @@ -720,7 +720,7 @@ class StockService extends BaseService $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) {