diff --git a/accounting/getaccount.py b/accounting/getaccount.py index d22f1c7..14b4d7e 100644 --- a/accounting/getaccount.py +++ b/accounting/getaccount.py @@ -4,10 +4,12 @@ from ahserver.serverenv import ServerEnv, get_serverenv from .const import * from accounting.accountingnode import get_parent_orgid -async def get_account(sor, accounting_orgid, orgid, subjectid, org1id=None): +async def get_account(sor, accounting_orgid, orgid, subjectid, org1id=None, update=False): ss = "a.org1id is NULL" if org1id: ss = "a.org1id = ${org1id}$" + if update: + ss += " for update" sql = """select a.*,