mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
More proper number formatting
This commit is contained in:
@@ -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'
|
||||
))
|
||||
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user