From 671e40bac29c33e515e9b579437b1e1b7bd557ce Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 16 Dec 2025 13:54:59 +0800 Subject: [PATCH] bugfix --- accounting/accounting_config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/accounting/accounting_config.py b/accounting/accounting_config.py index 65d5150..ca49be5 100644 --- a/accounting/accounting_config.py +++ b/accounting/accounting_config.py @@ -183,6 +183,9 @@ where accountid=${accid}$ if leg['amount'] < 0.0001: return await self.overdraw_check(sor, accid, leg) + subjects = await sor.R('subject', {'id': leg['subjectid']}) + if len(subjects) > 0: + leg['subjectname'] = subjects[0].name # write acc_balance sql = """select * from acc_balance where accountid=${accid}$