diff --git a/accounting/init.py b/accounting/init.py index 74fbbfc..08b069a 100644 --- a/accounting/init.py +++ b/accounting/init.py @@ -10,6 +10,7 @@ from .getaccount import getAccountBalance, getCustomerBalance, getAccountByName, from .stats import get_accounting_stats from .recharge import RechargeBiz, recharge_accounting from .consume import consume_accounting +from .creditlimit import get_credit_limit_for_account, update_used_credit, set_credit_limit async def all_my_accounts(request): env = request._run_ns @@ -73,3 +74,6 @@ def load_accounting(): g.all_my_accounts = all_my_accounts g.openRetailRelationshipAccounts = openRetailRelationshipAccounts g.get_accounting_stats = get_accounting_stats + g.get_credit_limit_for_account = get_credit_limit_for_account + g.update_used_credit = update_used_credit + g.set_credit_limit = set_credit_limit diff --git a/scripts/load_path.py b/scripts/load_path.py index fdd29a7..e7da8e5 100644 --- a/scripts/load_path.py +++ b/scripts/load_path.py @@ -68,7 +68,13 @@ PATHS_LOGINED = [ f"/accounting/stat_month_consumption.ui", f"/accounting/stat_today_consumption.ui", f"/accounting/stat_total_balance.ui", - f"/accounting/subject",] + f"/accounting/subject", + f"/accounting/credit_limit", + f"/accounting/credit_limit/index.ui", + f"/accounting/credit_limit/get_credit_limit.dspy", + f"/accounting/credit_limit/add_credit_limit.dspy", + f"/accounting/credit_limit/update_credit_limit.dspy", + f"/accounting/credit_limit/delete_credit_limit.dspy",] # ============================================================ # 执行注册