Added a note field to product barcodes (closes #962)

This commit is contained in:
Bernd Bestel
2020-12-19 17:20:54 +01:00
parent 5421dfb6b2
commit 3ad5f2cac5
5 changed files with 21 additions and 2 deletions

View File

@@ -90,6 +90,15 @@
value="1">
@endif
<div class="form-group">
<label for="note">{{ $__t('Note') }}</label>
<input type="text"
class="form-control"
id="note"
name="note"
value="@if($mode == 'edit'){{ $barcode->note }}@endif">
</div>
@include('components.userfieldsform', array(
'userfields' => $userfields,
'entity' => 'product_barcodes'

View File

@@ -470,6 +470,7 @@
<th>{{ $__t('Quantity unit') }}</th>
<th>{{ $__t('Amount') }}</th>
<th class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif">{{ $__t('Last price') }}</th>
<th>{{ $__t('Note') }}</th>
@include('components.userfields_thead', array(
'userfields' => $productBarcodeUserfields
@@ -518,6 +519,9 @@
<td class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif">
<span class="locale-number locale-number-currency">{{ $barcode->last_price }}</span>
</td>
<td>
{{ $barcode->note }}
</td>
@include('components.userfields_tbody', array(
'userfields' => $productBarcodeUserfields,