Renamed IncomeExpensesAccount to CurrentAccount.

This commit is contained in:
2023-03-22 15:42:44 +08:00
parent 761d5a5824
commit 567004f7d9
9 changed files with 45 additions and 46 deletions

@ -28,7 +28,7 @@ from wtforms.validators import DataRequired, ValidationError
from accounting.forms import CURRENCY_REQUIRED, CurrencyExists
from accounting.locale import lazy_gettext
from accounting.models import Account
from accounting.utils.ie_account import IncomeExpensesAccount, ie_accounts
from accounting.utils.current_account import CurrentAccount, current_accounts
from accounting.utils.strip_text import strip_text
from .options import Options
@ -242,9 +242,9 @@ class OptionForm(FlaskForm):
obj.recurring_data = self.recurring.form.as_data
@property
def ie_accounts(self) -> list[IncomeExpensesAccount]:
"""Returns the accounts for the income and expenses log.
def current_accounts(self) -> list[CurrentAccount]:
"""Returns the current accounts.
:return: The accounts for the income and expenses log.
:return: The current accounts.
"""
return ie_accounts()
return current_accounts()