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