mirror of
https://github.com/grocy/grocy.git
synced 2025-08-21 12:52:39 +00:00
Allow decimal numbers for the kcal field (closes #492)
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
### Stock improvements/fixes
|
### Stock improvements/fixes
|
||||||
- The productcard gets now also refreshed after a transaction was posted (purchase/consume/etc.) (thanks @kriddles)
|
- The productcard gets now also refreshed after a transaction was posted (purchase/consume/etc.) (thanks @kriddles)
|
||||||
|
- The product field calories (kcal) now also allows decimal numbers
|
||||||
- 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)
|
- 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)
|
||||||
- Fixed that on purchase a wrong minimum amount was enforced for products with enabled tare weight handling in combination with different purchase/stock quantity units
|
- Fixed that on purchase a wrong minimum amount was enforced for products with enabled tare weight handling in combination with different purchase/stock quantity units
|
||||||
- Fixed that the productcard did not load correctly when `FEATURE_FLAG_STOCK_LOCATION_TRACKING` was set to `false` (thanks @kriddles)
|
- Fixed that the productcard did not load correctly when `FEATURE_FLAG_STOCK_LOCATION_TRACKING` was set to `false` (thanks @kriddles)
|
||||||
|
@@ -219,7 +219,7 @@
|
|||||||
'id' => 'calories',
|
'id' => 'calories',
|
||||||
'label' => 'Energy (kcal)',
|
'label' => 'Energy (kcal)',
|
||||||
'min' => 0,
|
'min' => 0,
|
||||||
'step' => 1,
|
'step' => 0.01,
|
||||||
'value' => $value,
|
'value' => $value,
|
||||||
'invalidFeedback' => $__t('The amount cannot be lower than %s', '0'),
|
'invalidFeedback' => $__t('The amount cannot be lower than %s', '0'),
|
||||||
'hint' => $__t('Per stock quantity unit'),
|
'hint' => $__t('Per stock quantity unit'),
|
||||||
|
Reference in New Issue
Block a user