This commit is contained in:
yumoqing 2025-12-15 13:42:48 +08:00
parent 6505121d97
commit 69c1150d87

View File

@ -48,13 +48,9 @@ class RechargeAccounting:
if bz_date != self.curdate:
raise AccountingDateNotInBusinessDate(self.curdate, bz_date)
ao = Accounting(self, nodes[i], self.customerid,
resellerid=nodes[i+1])
else:
ao = AccountingOrgs(self, nodes[i], self.customerid)
self.accountingOrgs.append(ao)
ao = Accounting(self, "0", self.customerid)
await self.write_bill(sor)
[await ao.do_accounting(sor) for ao in self.accountingOrgs ]
await ao.do_accounting(sor)
print(f'recharge ok for {self.bill}, {nodes=}')
return True