Renamed "journal entry" to "voucher line item", and "entry type" to "side".

This commit is contained in:
2023-03-19 21:00:11 +08:00
parent 25c45b16ae
commit c1235608d8
58 changed files with 1961 additions and 1926 deletions

View File

@ -100,10 +100,11 @@ def init_accounts_command(username: str) -> None:
def __is_need_offset(base_code: str) -> bool:
"""Checks that whether entries in the account need offset.
"""Checks that whether voucher line items in the account need offset.
:param base_code: The code of the base account.
:return: True if entries in the account need offset, or False otherwise.
:return: True if voucher line items in the account need offset, or False
otherwise.
"""
# Assets
if base_code[0] == "1":

View File

@ -82,7 +82,7 @@ class AccountForm(FlaskForm):
"""The title."""
is_need_offset = BooleanField(
validators=[NoOffsetNominalAccount()])
"""Whether the the entries of this account need offset."""
"""Whether the the voucher line items of this account need offset."""
def populate_obj(self, obj: Account) -> None:
"""Populates the form data into an account object.