diff --git a/src/accounting/static/js/transaction-form.js b/src/accounting/static/js/transaction-form.js index 9269aa8..737bdea 100644 --- a/src/accounting/static/js/transaction-form.js +++ b/src/accounting/static/js/transaction-form.js @@ -713,7 +713,7 @@ class JournalEntrySubForm { this.element = element; this.entryType = element.dataset.entryType; this.entryIndex = parseInt(element.dataset.entryIndex); - this.#prefix = element.dataset.prefix; + this.#prefix = "accounting-currency-" + element.dataset.currencyIndex + "-" + this.entryType + "-" + this.entryIndex; this.#control = document.getElementById(this.#prefix + "-control"); this.#error = document.getElementById(this.#prefix + "-error"); this.no = document.getElementById(this.#prefix + "-no"); diff --git a/src/accounting/templates/accounting/transaction/include/form-entry-item.html b/src/accounting/templates/accounting/transaction/include/form-entry-item.html index d25c7de..2ecf128 100644 --- a/src/accounting/templates/accounting/transaction/include/form-entry-item.html +++ b/src/accounting/templates/accounting/transaction/include/form-entry-item.html @@ -20,7 +20,7 @@ Author: imacat@mail.imacat.idv.tw (imacat) First written: 2023/2/25 #} {#