From 5609196d775b7a9f50b979f53de52cd74b764dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Sat, 11 Jan 2025 22:14:31 +0300 Subject: [PATCH] fixed document item search disabled issue --- resources/assets/js/components/AkauntingItemButton.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/assets/js/components/AkauntingItemButton.vue b/resources/assets/js/components/AkauntingItemButton.vue index 94902744d..301031e9b 100644 --- a/resources/assets/js/components/AkauntingItemButton.vue +++ b/resources/assets/js/components/AkauntingItemButton.vue @@ -317,7 +317,7 @@ export default { async fetchMatchedItems() { let search_limit_value = this.getSearchLimitValue(); - await window.axios.get(this.searchUrl + '?search="' + this.search + '"' + search_limit_value + ' not ' + this.price + ':NULL enabled:1 limit:10') + await window.axios.get(this.searchUrl + '?search="' + this.search + '"' + ' not ' + this.price + ':NULL enabled:1 limit:10' + search_limit_value) .then(response => { this.item_list = []; let items = response.data.data; @@ -510,17 +510,17 @@ export default { let value = ''; if (typeof this.search_list_key === 'string' && this.search_list_key !== 'value') { - value += ' or ' + this.search_list_key + ' = "' + this.search + '"'; + value += ' or ' + this.search_list_key + ' = "' + this.search + '" not ' + this.price + ':NULL enabled:1 limit:10'; } else if (Array.isArray(this.search_list_key)) { this.search_list_key.forEach(key => { if (key !== 'value') { - value += ' or ' + key + ' = "' + this.search + '"'; + value += ' or ' + key + ' = "' + this.search + '" not ' + this.price + ':NULL enabled:1 limit:10'; } }); } else if (typeof this.search_list_key === 'object') { Object.keys(this.search_list_key).forEach(key => { if (key !== 'value') { - value += ' or ' + key + ' = "' + this.search + '"'; + value += ' or ' + key + ' = "' + this.search + '" not ' + this.price + ':NULL enabled:1 limit:10'; } }); }