Fixed price input decimals, started reviewing all number inputs (fixes #1076, references #998)

This commit is contained in:
Bernd Bestel
2020-10-19 20:03:26 +02:00
parent 6e1e90984f
commit 80beff2cae
19 changed files with 59 additions and 28 deletions

View File

@@ -23,6 +23,7 @@
'label' => 'New amount',
'hintId' => 'new_amount_qu_unit',
'min' => 0,
'decimals' => 2,
'value' => 1,
'invalidFeedback' => $__t('The amount cannot be lower than %s', '0'),
'additionalAttributes' => 'data-not-equal="-1"',
@@ -64,6 +65,7 @@
'id' => 'price',
'label' => 'Price',
'min' => 0,
'decimals' => 2,
'value' => '',
'hint' => $__t('in %s per purchase quantity unit', GROCY_CURRENCY),
'additionalHtmlContextHelp' => '<br><span class="small text-muted">' . $__t('This will apply to added products') . '</span>',