bugfix
This commit is contained in:
parent
6505121d97
commit
69c1150d87
@ -48,13 +48,9 @@ class RechargeAccounting:
|
|||||||
if bz_date != self.curdate:
|
if bz_date != self.curdate:
|
||||||
raise AccountingDateNotInBusinessDate(self.curdate, bz_date)
|
raise AccountingDateNotInBusinessDate(self.curdate, bz_date)
|
||||||
|
|
||||||
ao = Accounting(self, nodes[i], self.customerid,
|
ao = Accounting(self, "0", self.customerid)
|
||||||
resellerid=nodes[i+1])
|
|
||||||
else:
|
|
||||||
ao = AccountingOrgs(self, nodes[i], self.customerid)
|
|
||||||
self.accountingOrgs.append(ao)
|
|
||||||
await self.write_bill(sor)
|
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=}')
|
print(f'recharge ok for {self.bill}, {nodes=}')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user