Revised the documentation to use the term "income and expenses log" instead of "income and expenses", for consistency.

This commit is contained in:
2023-03-08 07:34:33 +08:00
parent b8b51b34d3
commit e7c43ae390
9 changed files with 20 additions and 20 deletions

View File

@ -142,10 +142,10 @@ class LedgerPeriodChooser(PeriodChooser):
class IncomeExpensesPeriodChooser(PeriodChooser):
"""The income and expenses period chooser."""
"""The income and expenses log period chooser."""
def __init__(self, currency: Currency, account: IncomeExpensesAccount):
"""Constructs the income and expenses period chooser."""
"""Constructs the income and expenses log period chooser."""
self.currency: Currency = currency
"""The currency."""
self.account: IncomeExpensesAccount = account

View File

@ -104,9 +104,9 @@ class ReportChooser:
@property
def __income_expenses(self) -> OptionLink:
"""Returns the income and expenses.
"""Returns the income and expenses log.
:return: The income and expenses.
:return: The income and expenses log.
"""
account: Account = self.__account
if not re.match(r"[12][12]", account.base_code):
@ -117,7 +117,7 @@ class ReportChooser:
else url_for("accounting.report.income-expenses",
currency=self.__currency, account=account,
period=self.__period)
return OptionLink(gettext("Income and Expenses"), url,
return OptionLink(gettext("Income and Expenses Log"), url,
self.__active_report == ReportType.INCOME_EXPENSES)
@property

View File

@ -27,7 +27,7 @@ class ReportType(Enum):
LEDGER: str = "ledger"
"""The ledger."""
INCOME_EXPENSES: str = "income-expenses"
"""The income and expenses."""
"""The income and expenses log."""
TRIAL_BALANCE: str = "trial-balance"
"""The trial balance."""
INCOME_STATEMENT: str = "income-statement"