mirror of
https://github.com/grocy/grocy.git
synced 2026-04-03 11:26:16 +02:00
inventory fix for quFactorPurchaseToStock - defaults to product details (#1081)
This commit is contained in:
parent
7ef9ffe041
commit
fb17c57dd3
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user