Renamed "transaction" to "voucher", "cash expense transaction" to "cash disbursement voucher", and "cash income transaction" to "cash receipt voucher".

This commit is contained in:
2023-03-19 13:44:51 +08:00
parent 1e286fbeba
commit 5db13393cc
75 changed files with 1812 additions and 1792 deletions

View File

@ -149,7 +149,7 @@
overflow-y: scroll;
}
/** The transaction management */
/** The voucher management */
.accounting-currency-control {
background-color: transparent;
}
@ -169,14 +169,14 @@
.accounting-list-group-hover .list-group-item:hover {
background-color: #ececec;
}
.accounting-transaction-entry {
.accounting-voucher-entry {
border: none;
}
.accounting-transaction-entry-header {
.accounting-voucher-entry-header {
font-weight: bolder;
border-bottom: thick double slategray;
}
.list-group-item.accounting-transaction-entry-total {
.list-group-item.accounting-voucher-entry-total {
font-weight: bolder;
border-top: thick double slategray;
}

View File

@ -1,5 +1,5 @@
/* The Mia! Accounting Flask Project
* transaction-transfer-form.js: The JavaScript for the transfer transaction form
* account-selector.js: The JavaScript for the account selector
*/
/* Copyright (c) 2023 imacat.

View File

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

View File

@ -105,7 +105,7 @@ class OriginalEntrySelector {
* Returns the net balance for an original entry.
*
* @param currentEntry {JournalEntrySubForm} the journal entry sub-form that is currently editing
* @param form {TransactionForm} the transaction form
* @param form {VoucherForm} the voucher form
* @param originalEntryId {string} the ID of the original entry
* @return {Decimal} the net balance of the original entry
*/

View File

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

View File

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