This commit is contained in:
yumoqing 2025-12-16 13:34:33 +08:00
parent cef48c4ea0
commit a6dc24dfe8

View File

@ -34,7 +34,7 @@ async def openPartyAccounts(sor, accounting_orgid, orgid, party_type, org1id=Non
addon_cond = " and a.party1type = ${party1type}$ " addon_cond = " and a.party1type = ${party1type}$ "
ns['party1type'] = party1_type ns['party1type'] = party1_type
sql = """select a.*, b.id as subjectid, b.name as subjectname,b.balance_side from account_config a, subject b sql = """select a.*, b.name as subjectname,b.balance_side from account_config a, subject b
where a.subjectid = b.id """ \ where a.subjectid = b.id """ \
+ addon_cond + """ + addon_cond + """
and a.partytype=${partytype}$ """ and a.partytype=${partytype}$ """