This commit is contained in:
yumoqing 2026-02-12 14:31:24 +08:00
parent 0d8440390c
commit 0ed1678a0f

View File

@ -65,6 +65,7 @@ class Accounting:
self.reseller_salemode = None self.reseller_salemode = None
self.variable = caller.variable self.variable = caller.variable
await self.setup_accounting_legs(i) await self.setup_accounting_legs(i)
try:
legs = sorted( legs = sorted(
self.accounting_legs, self.accounting_legs,
key=lambda x: ( key=lambda x: (
@ -75,6 +76,9 @@ class Accounting:
) )
) )
self.accounting_legs = legs self.accounting_legs = legs
except Exception as e:
exception(f'{self.accounting_legs=}, {e=}\n{format_exec()}')
await self.get_legs_account() await self.get_legs_account()
async def setup_accounting_legs(self, pos): async def setup_accounting_legs(self, pos):