refs #1147 invoice item searchable

This commit is contained in:
Cüneyt Şentürk
2020-01-21 15:26:21 +03:00
parent c71379c56b
commit 1688284cd1
6 changed files with 62 additions and 19 deletions

View File

@ -38,6 +38,7 @@
:form-error="form.errors.get('{{ $name }}')"
@endif
:loading-text="'{{ trans('general.loading') }}'"
:no-data-text="'{{ trans('general.no_data') }}'"
:no-matching-data-text="'{{ trans('general.no_matching_data') }}'"
></akaunting-select-remote>

View File

@ -43,15 +43,20 @@
])}}"
@interface="row.item_id = $event"
@label="row.name = $event"
@option="onSelectItem($event, index)"
:remote-action="'{{ route('items.autocomplete') }}'"
:remote-type="'invoice'"
:currency-code="form.currency_code"
:form-error="form.errors.get('name')"
:loading-text="'{{ trans('general.loading') }}'"
:no-data-text="'{{ trans('general.no_data') }}'"
:no-matching-data-text="'{{ trans('general.no_matching_data') }}'"
></akaunting-select-remote>
<input type="hidden"
data-item="name"
v-model="row.name"
@input="onCalculateTotal"
name="item[][name]">
data-item="name"
v-model="row.name"
@input="onCalculateTotal"
name="item[][name]">
{!! $errors->first('item.name', '<p class="help-block">:message</p>') !!}
@stack('name_input_end')
</td>