mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
* Puchase add qu_factor_to_stock * qu_factor_purchase_to_stock for stock edit * product barcodes with QU and Stores * remove product barcode tags * migrations/0103 add value and factor_puchase_amount to stock_current and stock_current_location_content * Remove unused method * StockService#GetProductDetails: include stock_value * productcard: include stock_value * Add Purchase Factor to Stock Overview * update demo data with stock qu_factor_purchase_to_stock * recipes_pos_resolved update * avg_price and oldest_price in product details * add average price to product card * hint for recipe costs not included if not in stock * Round value and factor_purchas_amount. Include currency for stock value * Add factor_purchase_amount to product card stock amount * Allow editing qu_factor_purchase_to_stock for stock entries * fix update qu_factor_purchase_to_stock for Transfers * Add barcode to existing product update to add to product_barcodes table * Add barcode to new product workflow update to add to product_barcodes table * *** Price now saved as 1 QU to stock in stock tables *** * remove column product barcode and use product_barcodes * Allow products to be deactivated instead of deleted * Embedded barcode and qu-conversion with page reload on change * Save current product barcode into new product_barcodes table * Embedded popup for product group add/edit * barcode scanner added to product barcodes input * Edit product qu_stock is unavailable after first purchase * StockOverview: Filters break when columns are reordered so for now just disable colReorder * view stockoverview.blade: display product_group column * Review Co-authored-by: Bernd Bestel <bernd@berrnd.de>
35 lines
1.9 KiB
PHP
35 lines
1.9 KiB
PHP
@push('componentScripts')
|
|
<script src="{{ $U('/viewjs/components/numberpicker.js', true) }}?v={{ $version }}"></script>
|
|
@endpush
|
|
|
|
@php if(!isset($value)) { $value = 1; } @endphp
|
|
@php if(empty($min)) { $min = 0; } @endphp
|
|
@php if(empty($max)) { $max = 999999; } @endphp
|
|
@php if(empty($step)) { $step = 1; } @endphp
|
|
@php if(empty($hint)) { $hint = ''; } @endphp
|
|
@php if(empty($hintId)) { $hintId = ''; } @endphp
|
|
@php if(empty($additionalCssClasses)) { $additionalCssClasses = ''; } @endphp
|
|
@php if(empty($additionalGroupCssClasses)) { $additionalGroupCssClasses = ''; } @endphp
|
|
@php if(empty($additionalAttributes)) { $additionalAttributes = ''; } @endphp
|
|
@php if(empty($additionalHtmlElements)) { $additionalHtmlElements = ''; } @endphp
|
|
@php if(empty($additionalHtmlContextHelp)) { $additionalHtmlContextHelp = ''; } @endphp
|
|
@php if(!isset($isRequired)) { $isRequired = true; } @endphp
|
|
@php if(!isset($noNameAttribute)) { $noNameAttribute = false; } @endphp
|
|
|
|
<div id="group-{{ $id }}" class="form-group {{ $additionalGroupCssClasses }}">
|
|
<label for="{{ $id }}">
|
|
{{ $__t($label) }}
|
|
<i class="fas fa-question-circle" id="{{ $hintId }}" data-toggle="tooltip" title="{{ $hint }}"></i>{!! $additionalHtmlContextHelp !!}</label>
|
|
<div class="input-group">
|
|
<input {!! $additionalAttributes !!} type="number" class="form-control numberpicker {{ $additionalCssClasses }}" id="{{ $id }}" @if(!$noNameAttribute) name="{{ $id }}" @endif value="{{ $value }}" min="{{ $min }}" max="{{ $max }}" step="{{ $step }}" @if($isRequired) required @endif>
|
|
<div class="input-group-append">
|
|
<div class="input-group-text numberpicker-up-button"><i class="fas fa-arrow-up"></i></div>
|
|
</div>
|
|
<div class="input-group-append">
|
|
<div class="input-group-text numberpicker-down-button"><i class="fas fa-arrow-down"></i></div>
|
|
</div>
|
|
<div class="invalid-feedback">{{ $invalidFeedback }}</div>
|
|
</div>
|
|
{!! $additionalHtmlElements !!}
|
|
</div>
|