More proper number formatting

This commit is contained in:
Bernd Bestel
2020-11-15 22:29:47 +01:00
parent 293880c874
commit 1bbd7787d8
11 changed files with 30 additions and 28 deletions

View File

@@ -56,10 +56,10 @@
@include('components.numberpicker', array(
'id' => 'amount',
'value' => $stockEntry->amount,
'min' => '0.' . str_repeat('0', $userSettings['stock_decimal_places_amounts'] - 1) . '1',
'label' => 'Amount',
'contextInfoId' => 'amount_qu_unit',
'invalidFeedback' => $__t('The amount cannot be lower than %s', '0'),
'additionalAttributes' => 'data-not-equal="-1"',
'additionalCssClasses' => 'locale-number-input locale-number-quantity-amount'
))

View File

@@ -376,10 +376,10 @@
xx{{ $currentStockEntry->product_group_name }}xx
</td>
<td>
<span class="locale-number locale-number-generic">{{ $currentStockEntry->product_calories }}</span>
<span class="locale-number locale-number-quantity-amount">{{ $currentStockEntry->product_calories }}</span>
</td>
<td>
<span class="locale-number locale-number-generic">{{ $currentStockEntry->calories }}</span>
<span class="locale-number locale-number-quantity-amount">{{ $currentStockEntry->calories }}</span>
</td>
@include('components.userfields_tbody', array(