mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-31 10:46:36 +00:00 
			
		
		
		
	Allow partial units during inventory (fixes #459)
This commit is contained in:
		| @@ -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 | ||||
|  | ||||
|   | ||||
| @@ -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