Revised the saveDescription method of the JournalEntryLineItemEditor editor to also save the isAccountConfirmed status of the DescriptionEditor editor, so that when the user selected any suggested account other than the confirmed account, the confirmed account is released from the next edit.

This commit is contained in:
2023-04-03 10:47:34 +08:00
parent f3d43a66cc
commit 562bc47be7
2 changed files with 8 additions and 7 deletions

View File

@ -323,6 +323,7 @@ class JournalEntryLineItemEditor {
this.#accountControl.classList.add("accounting-not-empty");
this.account = editor.selectedAccount.copy();
this.#accountText.innerText = editor.selectedAccount.text;
this.isAccountConfirmed = editor.isAccountConfirmed;
this.#validateAccount();
}
if (editor.description === "") {