Added the journal report as the first accounting report.

This commit is contained in:
2023-03-04 18:29:00 +08:00
parent 55c2ce6695
commit 9bfcd3c50c
16 changed files with 1956 additions and 7 deletions

View File

@ -122,12 +122,6 @@ class SummaryEditor {
*/
#formSummary;
/**
* The tab plane classes
* @type {typeof TabPlane[]}
*/
#TAB_CLASES = [GeneralTagTab, GeneralTripTab, BusTripTab, RegularPaymentTab, AnnotationTab]
/**
* The tab planes
* @type {{general: GeneralTagTab, travel: GeneralTripTab, bus: BusTripTab, regular: RegularPaymentTab, annotation: AnnotationTab}}
@ -157,7 +151,7 @@ class SummaryEditor {
this.#formSummaryControl = document.getElementById("accounting-entry-form-summary-control");
this.#formSummary = document.getElementById("accounting-entry-form-summary");
for (const cls of this.#TAB_CLASES) {
for (const cls of [GeneralTagTab, GeneralTripTab, BusTripTab, RegularPaymentTab, AnnotationTab]) {
const tab = new cls(this);
this.tabPlanes[tab.tabId()] = tab;
}