diff --git a/accounting/getaccount.py b/accounting/getaccount.py index 2cacb7a..6af3fba 100644 --- a/accounting/getaccount.py +++ b/accounting/getaccount.py @@ -47,11 +47,11 @@ async def getAccountByName(sor, accounting_orgid, orgid, name, org1id): async def getCustomerBalance(sor, customerid): name = '客户资金账户' - get_owner_orgid = get_serverenv('get_owner_orgid') + env = ServerEnv() + get_owner_orgid = env.get_owner_orgid if get_owner_orgid is None: debug('get_owner_orgid function is not a serverenv function') return None - debug(f'{get_owner_orgid=}') orgid = await get_owner_orgid(sor, customerid) if orgid is None: debug(f"{customerid=}'s parent organization not found")