diff --git a/src/accounting/static/js/account-selector.js b/src/accounting/static/js/account-selector.js index 761fb01..7fd617f 100644 --- a/src/accounting/static/js/account-selector.js +++ b/src/accounting/static/js/account-selector.js @@ -105,7 +105,7 @@ class AccountSelector { }; this.#clearButton.onclick = () => this.#lineItemEditor.clearAccount(); for (const option of this.#options) { - option.onclick = () => this.#lineItemEditor.saveAccount(option.dataset.code, option.dataset.content, option.classList.contains("accounting-account-is-need-offset")); + option.onclick = () => this.#lineItemEditor.saveAccount(option.dataset.code, option.dataset.text, option.classList.contains("accounting-account-is-need-offset")); } this.#query.addEventListener("input", () => { this.#filterOptions(); diff --git a/src/accounting/templates/accounting/journal-entry/include/account-selector-modal.html b/src/accounting/templates/accounting/journal-entry/include/account-selector-modal.html index ee2fd10..f3e247f 100644 --- a/src/accounting/templates/accounting/journal-entry/include/account-selector-modal.html +++ b/src/accounting/templates/accounting/journal-entry/include/account-selector-modal.html @@ -37,7 +37,7 @@ First written: 2023/2/25