Replaced the long parameter list with the JournalEntryEditor instance in the save method of the JavaScript JournalEntrySubForm sub-form, to simplify the code.

This commit is contained in:
2023-03-18 14:56:26 +08:00
committed by 依瑪貓
parent 1a54592d4c
commit fbeec600b7
2 changed files with 16 additions and 23 deletions

View File

@ -230,7 +230,7 @@ class JournalEntryEditor {
this.entry = this.#side.addJournalEntry();
}
this.amount = this.#amount.value;
this.entry.save(this.isNeedOffset, this.originalEntryId, this.originalEntryDate, this.originalEntryText, this.accountCode, this.accountText, this.summary, this.amount);
this.entry.save(this);
bootstrap.Modal.getInstance(this.#modal).hide();
}
return false;