diff --git a/src/accounting/static/js/account-form.js b/src/accounting/static/js/account-form.js index 03482c2..88fda14 100644 --- a/src/accounting/static/js/account-form.js +++ b/src/accounting/static/js/account-form.js @@ -310,7 +310,7 @@ class BaseAccountSelector { const queryValues = JSON.parse(option.dataset.queryValues); let isMatched = false; for (const queryValue of queryValues) { - if (queryValue.includes(this.#query.value)) { + if (queryValue.toLowerCase().includes(this.#query.value.toLowerCase())) { isMatched = true; break; } diff --git a/src/accounting/static/js/account-selector.js b/src/accounting/static/js/account-selector.js index 2716277..761fb01 100644 --- a/src/accounting/static/js/account-selector.js +++ b/src/accounting/static/js/account-selector.js @@ -166,7 +166,7 @@ class AccountSelector { } const queryValues = JSON.parse(option.dataset.queryValues); for (const queryValue of queryValues) { - if (queryValue.includes(query.value)) { + if (queryValue.toLowerCase().includes(query.value.toLowerCase())) { return true; } }