This commit is contained in:
yumoqing 2025-12-16 13:54:59 +08:00
parent 46e134d0d3
commit 671e40bac2

View File

@ -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}$