Renamed "voucher" to "journal entry".

This commit is contained in:
2023-03-20 22:08:58 +08:00
parent 8f909965a9
commit b1af1d7425
74 changed files with 1956 additions and 1816 deletions

View File

@ -149,7 +149,7 @@
overflow-y: scroll;
}
/** The voucher management */
/** The journal entry management */
.accounting-currency-control {
background-color: transparent;
}

View File

@ -1,5 +1,5 @@
/* The Mia! Accounting Flask Project
* voucher-form.js: The JavaScript for the voucher form
* journal-entry-form.js: The JavaScript for the journal entry form
*/
/* Copyright (c) 2023 imacat.
@ -23,14 +23,14 @@
"use strict";
document.addEventListener("DOMContentLoaded", () => {
VoucherForm.initialize();
JournalEntryForm.initialize();
});
/**
* The voucher form
* The journal entry form
*
*/
class VoucherForm {
class JournalEntryForm {
/**
* The form element
@ -105,7 +105,7 @@ class VoucherForm {
lineItemEditor;
/**
* Constructs the voucher form.
* Constructs the journal entry form.
*
*/
constructor() {
@ -325,17 +325,17 @@ class VoucherForm {
}
/**
* The voucher form
* @type {VoucherForm}
* The journal entry form
* @type {JournalEntryForm}
*/
static #form;
/**
* Initializes the voucher form.
* Initializes the journal entry form.
*
*/
static initialize() {
this.#form = new VoucherForm()
this.#form = new JournalEntryForm()
}
}
@ -352,8 +352,8 @@ class CurrencySubForm {
element;
/**
* The voucher form
* @type {VoucherForm}
* The journal entry form
* @type {JournalEntryForm}
*/
form;
@ -420,7 +420,7 @@ class CurrencySubForm {
/**
* Constructs a currency sub-form
*
* @param form {VoucherForm} the voucher form
* @param form {JournalEntryForm} the journal entry form
* @param element {HTMLDivElement} the currency sub-form element
*/
constructor(form, element) {

View File

@ -29,8 +29,8 @@
class JournalEntryLineItemEditor {
/**
* The voucher form
* @type {VoucherForm}
* The journal entry form
* @type {JournalEntryForm}
*/
form;
@ -217,7 +217,7 @@ class JournalEntryLineItemEditor {
/**
* Constructs a new journal entry line item editor.
*
* @param form {VoucherForm} the voucher form
* @param form {JournalEntryForm} the journal entry form
*/
constructor(form) {
this.form = form;

View File

@ -1,5 +1,5 @@
/* The Mia! Accounting Flask Project
* voucher-order.js: The JavaScript for the voucher order
* journal-entry-order.js: The JavaScript for the journal entry order
*/
/* Copyright (c) 2023 imacat.

View File

@ -105,7 +105,7 @@ class OriginalLineItemSelector {
* Returns the net balance for an original line item.
*
* @param currentLineItem {LineItemSubForm} the line item sub-form that is currently editing
* @param form {VoucherForm} the voucher form
* @param form {JournalEntryForm} the journal entry form
* @param originalLineItemId {string} the ID of the original line item
* @return {Decimal} the net balance of the original line item
*/