From a6dc24dfe8d56e69240027e84d7c601a9a79aac4 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 16 Dec 2025 13:34:33 +0800 Subject: [PATCH] bugfix --- accounting/openaccount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounting/openaccount.py b/accounting/openaccount.py index 3c0efcb..3ce60b2 100644 --- a/accounting/openaccount.py +++ b/accounting/openaccount.py @@ -34,7 +34,7 @@ async def openPartyAccounts(sor, accounting_orgid, orgid, party_type, org1id=Non addon_cond = " and a.party1type = ${party1type}$ " 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 """ \ + addon_cond + """ and a.partytype=${partytype}$ """