mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 10:05:45 +00:00
Allow partial units during inventory (fixes #459)
This commit is contained in:
parent
675bf25927
commit
8e26bd2c31
@ -4,6 +4,9 @@
|
|||||||
- From there you can also edit the stock entries
|
- From there you can also edit the stock entries
|
||||||
- A huge THANK YOU goes to @kriddles for the work on this feature
|
- A huge THANK YOU goes to @kriddles for the work on this feature
|
||||||
|
|
||||||
|
### Stock fixes
|
||||||
|
- Fixed that entering partial amounts was not possible on the inventory page (only applies if the product option "Allow partial units in stock" is enabled)
|
||||||
|
|
||||||
### Shopping list fixes
|
### Shopping list fixes
|
||||||
- Fixed that when `FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS` was set to `false`, the shopping list appeared empty after some actions
|
- Fixed that when `FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS` was set to `false`, the shopping list appeared empty after some actions
|
||||||
|
|
||||||
|
@ -604,7 +604,7 @@ class StockService extends BaseService
|
|||||||
|
|
||||||
return $returnValue;
|
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))
|
if (!$this->ProductExists($productId))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user