|
915e4408e1
|
Revised the JavaScript to initialize the OriginalEntrySelector instance in JournalEntryEditor, so that the journal entry editor holds the OriginalEntrySelector instance. It can find the OriginalEntrySelector instance without needing to invoke its static methods. Removed the redundant static methods from the OriginalEntrySelector class.
|
2023-03-18 22:11:45 +08:00 |
|
|
fd9eac06f6
|
Merged the code in the #initializeSummaryEditors method into the constructor in the JavaScript JournalEntryEditor class.
|
2023-03-18 22:11:45 +08:00 |
|
|
403942dfc0
|
Added a missing semicolon in the saveOriginalEntry method of the JavaScript JournalEntryEditor class.
|
2023-03-18 22:11:45 +08:00 |
|
|
35dc513760
|
Revised the #initializeSummaryEditors method of the JavaScript JournalEntryEditor class to construct the SummaryEditor instances with the entry type instead of the form element. Replaced the form element with the entry type in the constructor of the SummaryEditor class. Removed the unused accounting-summary-editor class and data-entry-type attributes from the template of the summary editor.
|
2023-03-18 22:11:45 +08:00 |
|
|
01861f0b6a
|
Merged the code in the #initializeAccountSelectors method into the constructor in the JavaScript JournalEntryEditor class.
|
2023-03-18 22:11:45 +08:00 |
|
|
34f63c1cdf
|
Renamed the "isOriginalEntry", "is-original-entry", "is_original_entry", and "isOriginalEntry()" methods and properties of journal entries to "isNeedOffset", "is-need-offset", "is_need_offset", and "isNeedOffset()", to be clear and understandable.
|
2023-03-18 22:11:44 +08:00 |
|
|
a643d9e811
|
Renamed the isAccountOffsetNeeded parameter to isAccountNeedOffset in the saveSummaryWithAccount method of the JournalEntryEditor class.
|
2023-03-18 22:11:44 +08:00 |
|
|
2239ddfad1
|
Revised the JavaScript to initialize the AccountSelector instances in JournalEntryEditor, so that the journal entry editor holds the AccountSelector instances. It can find the AccountSelector instance without needing to invoke its static methods. Removed the redundant static methods from the AccountSelector class.
|
2023-03-18 22:11:44 +08:00 |
|
|
12fbe36b9a
|
Revised the JavaScript to initialize the SummaryEditor instances in JournalEntryEditor, so that the journal entry editor holds the SummaryEditor instances. It can find the SummaryEditor instance without needing to invoke its static methods. Removed the redundant static methods from the SummaryEditor class.
|
2023-03-18 22:11:44 +08:00 |
|
|
46e34bb89a
|
Removed setting the redundant "entryType" dataset from the "onAddNew" and "onEdit" methods of the JournalEntryEditor class. It is not used anymore.
|
2023-03-18 22:11:44 +08:00 |
|
|
c9453d3023
|
Removed the redundant "entryType" parameter from the static "start" method of JavaScript AccountSelector.
|
2023-03-18 22:11:44 +08:00 |
|
|
fc766724c4
|
Removed the redundant "summary" parameter from the "#onOpen" and static "start" methods of JavaScript SummaryEditor.
|
2023-03-18 22:11:44 +08:00 |
|
|
38c394c0af
|
Added the TransactionForm instance to the constructor of the JournalEntryEditor instance, so that the journal entry editor holds an instance of the transaction form, too. It does not need to find the transaction form all the way from the side property that may not be available. Retired the redundant getTransactionForm method from the JournalEntryEditor class.
|
2023-03-18 22:11:44 +08:00 |
|
|
67e2b06d37
|
Revised the JavaScript to initialize the JournalEntryEditor in TransactionForm, so that the transaction form holds the JournalEntryEditor instance. The DebitCreditSideSubForm and JournalEntrySubForm instances can find the JournalEntryEditor instance from the parent form, without needing to invoke its static methods. Removed the redundant static methods from the JournalEntryEditor class.
|
2023-03-18 22:11:44 +08:00 |
|
|
be10a8d99e
|
Revised the coding style with the JavaScript arrow functions for the transaction form.
|
2023-03-18 22:11:44 +08:00 |
|
|
fbeec600b7
|
Replaced the long parameter list with the JournalEntryEditor instance in the save method of the JavaScript JournalEntrySubForm sub-form, to simplify the code.
|
2023-03-18 22:11:44 +08:00 |
|
|
1a54592d4c
|
Added the amount attribute to the JavaScript JournalEntryEditor class to pass the amount to the JournalEntrySubForm without exposing the amount input element.
|
2023-03-18 22:11:44 +08:00 |
|
|
94a527caf2
|
Replaces the datasets with object attributes to store the column values in the JavaScript JournalEntryEditor class.
|
2023-03-18 22:10:28 +08:00 |
|
|
0a1bbbdd47
|
Replaced the isOriginalEntry dataset attribute with the isNeedOffset property in the JavaScript JournalEntryEditor. It does not make sense to store that information in the HTML.
|
2023-03-18 09:47:57 +08:00 |
|
|
82b63e4bd4
|
Revised the coding style in the JavaScript journal entry editor.
|
2023-03-18 04:02:48 +08:00 |
|
|
d88b3ac770
|
Added to track the net balance and offset of the original entries.
|
2023-03-17 22:32:01 +08:00 |
|
|
bf2f96621d
|
Revised so that when the account selector finds the codes from the form, the journal entry editor is used to find the form instead of messing-up with the TransactionForm class and its static method that was a shortcut to the private instance method of the same name.
|
2023-03-14 17:03:10 +08:00 |
|
|
2d771f04be
|
Fixed so that saving the journal entry from the journal entry editor triggers updating the total of the debit or credit side, which in turn triggers validating the balance if it is on a transfer form. This fixed the problem that deleting a journal entry updates total but not re-validating the balance.
|
2023-03-14 17:03:06 +08:00 |
|
|
3826646d06
|
Reordered the journal entry editor and put the summary first and the account later.
|
2023-03-14 17:02:46 +08:00 |
|
|
74071e8997
|
Removed the unused static validateAccount method from the JavaScript journal entry editor.
|
2023-03-14 17:02:43 +08:00 |
|
|
3ce34803f3
|
Moved the journal entry editor from the transaction-form.js to a new independent JavaScript file journal-entry-editor.js.
|
2023-03-14 17:02:41 +08:00 |
|