Allow decimal numbers for the kcal field (closes #492)

This commit is contained in:
Bernd Bestel
2020-01-21 21:31:42 +01:00
parent 5cdfd30852
commit 6f035fd64d
2 changed files with 2 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
### Stock improvements/fixes
- 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 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)

View File

@@ -219,7 +219,7 @@
'id' => 'calories',
'label' => 'Energy (kcal)',
'min' => 0,
'step' => 1,
'step' => 0.01,
'value' => $value,
'invalidFeedback' => $__t('The amount cannot be lower than %s', '0'),
'hint' => $__t('Per stock quantity unit'),