Revised the documentation to use the term "income and expenses log" instead of "income and expenses", for consistency.
This commit is contained in:
@ -367,9 +367,9 @@ class IncomeExpensesPageParams(PageParams):
|
||||
|
||||
|
||||
def _populate_entries(entries: list[Entry]) -> None:
|
||||
"""Populates the income and expenses entries with relative data.
|
||||
"""Populates the income and expenses log entries with relative data.
|
||||
|
||||
:param entries: The income and expenses entries.
|
||||
:param entries: The income and expenses log entries.
|
||||
:return: None.
|
||||
"""
|
||||
transactions: dict[int, Transaction] \
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user