Added an option to reprint stock entry labels when editing them (closes #2092)

This commit is contained in:
Bernd Bestel
2023-01-05 18:15:21 +01:00
parent daf5ad33c7
commit 83fa02d8ad
4 changed files with 44 additions and 3 deletions

View File

@@ -133,6 +133,7 @@
</div>
</div>
@if(GROCY_FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING)
<div class="form-group">
<div class="custom-control custom-checkbox">
<input @if($stockEntry->open == 1) checked @endif class="form-check-input custom-control-input" type="checkbox" id="open" name="open" value="1">
@@ -140,12 +141,26 @@
for="open">{{ $__t('Opened') }}</label>
</div>
</div>
@endif
@include('components.userfieldsform', array(
'userfields' => $userfields,
'entity' => 'stock'
))
@if(GROCY_FEATURE_FLAG_LABEL_PRINTER)
<div class="form-group">
<div class="custom-control custom-checkbox">
<input class="form-check-input custom-control-input"
type="checkbox"
id="print-label"
value="1">
<label class="form-check-label custom-control-label"
for="print-label">{{ $__t('Reprint stock entry label') }}</label>
</div>
</div>
@endif
<button id="save-stockentry-button"
class="btn btn-success">{{ $__t('OK') }}</button>