mirror of
https://github.com/grocy/grocy.git
synced 2025-08-28 09:01:14 +00:00
Allow partial units during inventory (fixes #459)
This commit is contained in:
@@ -604,7 +604,7 @@ class StockService extends BaseService
|
||||
|
||||
return $returnValue;
|
||||
}
|
||||
public function InventoryProduct(int $productId, int $newAmount, $bestBeforeDate, $locationId = null, $price = null)
|
||||
public function InventoryProduct(int $productId, float $newAmount, $bestBeforeDate, $locationId = null, $price = null)
|
||||
{
|
||||
if (!$this->ProductExists($productId))
|
||||
{
|
||||
|
Reference in New Issue
Block a user