mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
inventory fix for quFactorPurchaseToStock - defaults to product details (#1081)
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user