This commit is contained in:
yumoqing 2025-12-27 12:07:03 +08:00
parent 5f5ddcd09a
commit 16924ec6d3

View File

@ -4,10 +4,12 @@ from ahserver.serverenv import ServerEnv, get_serverenv
from .const import * from .const import *
from accounting.accountingnode import get_parent_orgid 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" ss = "a.org1id is NULL"
if org1id: if org1id:
ss = "a.org1id = ${org1id}$" ss = "a.org1id = ${org1id}$"
if update:
ss += " for update"
sql = """select sql = """select
a.*, a.*,