This commit is contained in:
yumoqing 2026-01-04 15:55:36 +08:00
parent 00280f6908
commit 58998ed385

View File

@ -51,15 +51,16 @@ async def consume_accounting(sor, orderid, order_details):
od['curdate'] = curdate od['curdate'] = curdate
ods.append(ConsumeBiz(od)) ods.append(ConsumeBiz(od))
ao = Accounting(ods) ao = Accounting(ods)
od = order_details[0]
bill = { bill = {
'id':billid, 'id':billid,
'customerid':self.customerid, 'customerid':od.customerid,
'resellerid':self.resellerid, 'resellerid':od.resellerid,
'orderid':self.orderid, 'orderid':od.orderid,
'business_op':self.action, 'business_op':od.action,
'amount':log['transamt'], 'amount':od.transamt,
'bill_date':curdate, 'bill_date':od.curdate,
'bill_timestamp':self.timestamp 'bill_timestamp':od.timestamp
} }
await sor.C('bill', bill.copy()) await sor.C('bill', bill.copy())
await ao.do_accounting(sor) await ao.do_accounting(sor)