bugfix
This commit is contained in:
parent
5f5ddcd09a
commit
16924ec6d3
@ -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.*,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user