From b3c666c8727bfeaaa70e7b592abc05a3ebc21b5f 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 18:36:11 +0800 Subject: [PATCH] Fixed the addJournalEntry method of the DebitCreditSideSubForm sub-form to re-validate the whole side after a new journal entry is added. --- src/accounting/static/js/transaction-form.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/accounting/static/js/transaction-form.js b/src/accounting/static/js/transaction-form.js index 025f734..e79af58 100644 --- a/src/accounting/static/js/transaction-form.js +++ b/src/accounting/static/js/transaction-form.js @@ -502,6 +502,7 @@ class DebitCreditSideSubForm { this.#entries.push(entry); this.#resetDeleteJournalEntryButtons(); this.#initializeDragAndDropReordering(); + this.validate(); return entry; }