From ff7c393447e713991ba6a93aa8b20f6de866ef23 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 6 Jan 2026 16:32:47 +0800 Subject: [PATCH] bugfix --- accounting/getaccount.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounting/getaccount.py b/accounting/getaccount.py index 1bae40a..2604ac0 100644 --- a/accounting/getaccount.py +++ b/accounting/getaccount.py @@ -70,8 +70,8 @@ async def getAccountBalance(sor, accounting_orgid, orgid, subjectname, org1id): acc = await getAccountByName(sor, accounting_orgid, orgid, subjectname,org1id) - if accid is None: - debug(f'accid is None, {accounting_orgid=}, {orgid=}, {subjectname=}') + if acc is None: + debug(f'accid is None, {accounting_orgid=}, {orgid=}, {subjectname=}, {org1id=}') return None return acc.balance