Split the quick consume and open amount product option (closes #2127)

This commit is contained in:
Bernd Bestel
2023-02-05 20:37:39 +01:00
parent b64d726c42
commit d8d3c3ef0b
8 changed files with 126 additions and 8 deletions

View File

@@ -495,10 +495,22 @@
'min' => $DEFAULT_MIN_AMOUNT,
'decimals' => $userSettings['stock_decimal_places_amounts'],
'value' => $value,
'hint' => $__t('This amount is used for the "quick consume/open buttons" on the stock overview page (related to quantity unit stock)'),
'hint' => $__t('This amount is used for the "quick consume button" on the stock overview page (related to quantity unit stock)'),
'contextInfoId' => 'quick_consume_qu_info',
'additionalCssClasses' => 'locale-number-input locale-number-quantity-amount'
))
@php if($mode == 'edit') { $value = $product->quick_open_amount; } else { $value = 1; } @endphp
@include('components.numberpicker', array(
'id' => 'quick_open_amount',
'label' => 'Quick open amount',
'min' => $DEFAULT_MIN_AMOUNT,
'decimals' => $userSettings['stock_decimal_places_amounts'],
'value' => $value,
'hint' => $__t('This amount is used for the "quick open button" on the stock overview page (related to quantity unit stock)'),
'contextInfoId' => 'quick_open_qu_info',
'additionalCssClasses' => 'locale-number-input locale-number-quantity-amount'
))
@if(GROCY_FEATURE_FLAG_LABEL_PRINTER)
<div class="form-group">