From d64917a3e009158a1a73860735e7902151812429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 26 Aug 2020 12:57:06 +0300 Subject: [PATCH] close #1554 Fixed: Item autocomplete/search not working in invoice/bill --- resources/assets/js/components/AkauntingSelectRemote.vue | 4 +++- resources/views/purchases/bills/item.blade.php | 2 +- resources/views/sales/invoices/item.blade.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/components/AkauntingSelectRemote.vue b/resources/assets/js/components/AkauntingSelectRemote.vue index 66eb5640d..df6ebe2e8 100644 --- a/resources/assets/js/components/AkauntingSelectRemote.vue +++ b/resources/assets/js/components/AkauntingSelectRemote.vue @@ -620,7 +620,9 @@ export default { methods: { remoteMethod(query) { - document.getElementById('form-select-' + this.name).getElementsByTagName("input")[0].readOnly = false; + if (document.getElementById('form-select-' + this.name)) { + document.getElementById('form-select-' + this.name).getElementsByTagName("input")[0].readOnly = false; + } if (query !== '') { this.loading = true; diff --git a/resources/views/purchases/bills/item.blade.php b/resources/views/purchases/bills/item.blade.php index a8bbb2a9b..f53a15264 100644 --- a/resources/views/purchases/bills/item.blade.php +++ b/resources/views/purchases/bills/item.blade.php @@ -18,7 +18,7 @@ @stack('name_input_start') - @stack('name_input_start') -