Allow partial units during inventory (fixes #459)

This commit is contained in:
Bernd Bestel 2020-01-03 13:55:14 +01:00
parent 675bf25927
commit 8e26bd2c31
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,9 @@
- From there you can also edit the stock entries
- 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
- Fixed that when `FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS` was set to `false`, the shopping list appeared empty after some actions

View File

@ -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))
{