Split the "accounting.transaction.template" module into the "accounting.transaction.template_filters" and "accounting.transaction.template_globals" modules.

This commit is contained in:
2023-03-03 18:28:59 +08:00
parent 9a41cb10a1
commit 9065686cc5
4 changed files with 45 additions and 24 deletions

View File

@ -36,9 +36,9 @@ from accounting.utils.user import get_current_user_pk
from .dispatcher import TransactionType, get_txn_type, TXN_TYPE_OBJ
from .forms import sort_transactions_in, TransactionReorderForm
from .queries import get_transaction_query
from .template import with_type, to_transfer, format_amount, \
format_amount_input, format_date, text2html, currency_options, \
default_currency_code
from .template_filters import with_type, to_transfer, format_amount, \
format_amount_input, format_date, text2html
from .template_globals import currency_options, default_currency_code
bp: Blueprint = Blueprint("transaction", __name__)
"""The view blueprint for the transaction management."""