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 .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.*,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user