From 232f73172f3d069d82440d3c7bb5ef5986d1fdb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 13 Mar 2023 19:57:07 +0800 Subject: [PATCH] Removed the prefix from the journal entry sub-form. --- src/accounting/static/js/transaction-form.js | 2 +- .../accounting/transaction/include/form-entry-item.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 #} {#