Skip to content

Commit

Permalink
Fixed issue #1554 Item autocomplete/search not working in invoice/bill
Browse files Browse the repository at this point in the history
  • Loading branch information
jairox6x committed Aug 26, 2020
1 parent cdf0bf3 commit 67da889
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/assets/js/components/AkauntingSelectRemote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ export default {
methods: {
remoteMethod(query) {
document.getElementById('form-select-' + this.name).getElementsByTagName("input")[1].readOnly = false;
document.getElementById('form-select-' + this.name).getElementsByTagName("input")[0].readOnly = false;
if (query !== '') {
this.loading = true;
Expand Down
2 changes: 1 addition & 1 deletion resources/views/purchases/bills/item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class="btn btn-icon btn-outline-danger btn-lg">
<td class="border-right-0 border-bottom-0"
:class="[{'has-error': form.errors.has('items.' + index + '.name') }]">
@stack('name_input_start')
<akaunting-select-remote
<akaunting-select-remote id="form-select-item_id"
:form-classes="[{'has-error': form.errors.has('items.' + index + '.name')}]"
:placeholder="'{{ trans('general.type_item_name') }}'"
:name="'item_id'"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/sales/invoices/item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class="btn btn-icon btn-outline-danger btn-lg">
<td class="border-right-0 border-bottom-0"
:class="[{'has-error': form.errors.has('items.' + index + '.name') }]">
@stack('name_input_start')
<akaunting-select-remote
<akaunting-select-remote id="form-select-item_id"
:form-classes="[{'has-error': form.errors.has('items.' + index + '.name')}]"
:placeholder="'{{ trans('general.type_item_name') }}'"
:name="'item_id'"
Expand Down

0 comments on commit 67da889

Please sign in to comment.