diff --git a/src/accounting/static/js/journal-entry-form.js b/src/accounting/static/js/journal-entry-form.js index b9cf1cb..7aa7da3 100644 --- a/src/accounting/static/js/journal-entry-form.js +++ b/src/accounting/static/js/journal-entry-form.js @@ -1029,7 +1029,7 @@ class LineItemSubForm { * @return {JournalEntryAccount|null} the account */ get account() { - return this.#accountCode.value === null? null: new JournalEntryAccount(this.#accountCode.value, this.#accountCode.dataset.text, this.#accountCode.classList.contains("accounting-is-need-offset")); + return this.#accountCode.value === null? null: new JournalEntryAccount(this.#accountCode.value, this.#accountCode.dataset.text, this.#accountCode.classList.contains("accounting-account-is-need-offset")); } /** @@ -1108,9 +1108,9 @@ class LineItemSubForm { this.#accountCode.value = editor.account.code; this.#accountCode.dataset.text = editor.account.text; if (editor.account.isNeedOffset) { - this.#accountCode.classList.add("accounting-is-need-offset"); + this.#accountCode.classList.add("accounting-account-is-need-offset"); } else { - this.#accountCode.classList.remove("accounting-is-need-offset"); + this.#accountCode.classList.remove("accounting-account-is-need-offset"); } this.#accountText.innerText = editor.account.text; this.#description.value = editor.description === null? "": editor.description; diff --git a/src/accounting/templates/accounting/journal-entry/include/form-line-item.html b/src/accounting/templates/accounting/journal-entry/include/form-line-item.html index 22372f6..8eea2b2 100644 --- a/src/accounting/templates/accounting/journal-entry/include/form-line-item.html +++ b/src/accounting/templates/accounting/journal-entry/include/form-line-item.html @@ -26,7 +26,7 @@ First written: 2023/2/25 {% endif %} - +