Show stock userfields on the stock entry edit form

This commit is contained in:
Bernd Bestel
2022-04-06 19:08:17 +02:00
parent 4da546fc80
commit 76d6342156
3 changed files with 20 additions and 8 deletions

View File

@@ -5,7 +5,8 @@
@section('content')
<script>
Grocy.EditObjectId = {{ $stockEntry->id }};
Grocy.EditObjectId = "{{ $stockEntry->stock_id }}";
Grocy.EditObjectRowId = {{ $stockEntry->id }};
Grocy.EditObjectProductId = {{ $stockEntry->product_id }};
</script>
@@ -140,6 +141,11 @@
</div>
</div>
@include('components.userfieldsform', array(
'userfields' => $userfields,
'entity' => 'stock'
))
<button id="save-stockentry-button"
class="btn btn-success">{{ $__t('OK') }}</button>