diff --git a/src/accounting/static/js/summary-editor.js b/src/accounting/static/js/summary-editor.js index a2cb5e5..7d7f4be 100644 --- a/src/accounting/static/js/summary-editor.js +++ b/src/accounting/static/js/summary-editor.js @@ -299,15 +299,6 @@ class SummaryEditor { } formSummaryControl.onclick = () => this.#editors[entryForm.dataset.entryType].#onOpen() } - - /** - * Initializes the summary editor for a new journal entry. - * - * @param entryType {string} the entry type, either "debit" or "credit" - */ - static initializeNewJournalEntry(entryType) { - this.#editors[entryType].#onOpen(); - } } /** diff --git a/src/accounting/static/js/transaction-form.js b/src/accounting/static/js/transaction-form.js index 258746d..63c7df3 100644 --- a/src/accounting/static/js/transaction-form.js +++ b/src/accounting/static/js/transaction-form.js @@ -481,7 +481,6 @@ class DebitCreditSideSubForm { this.#addEntryButton.onclick = () => { JournalEntryEditor.addNew(this); AccountSelector.initializeJournalEntryForm(); - SummaryEditor.initializeNewJournalEntry(entryType); }; this.#resetDeleteJournalEntryButtons(); this.#initializeDragAndDropReordering();