This commit is contained in:
yumoqing 2026-01-04 16:13:48 +08:00
parent 58998ed385
commit eafa56eca7

View File

@ -38,6 +38,7 @@ class Accounting:
get_account(legaccounting_orgid) 获得记账账号通过科目机构类型账务机构确定一个唯一的账号 get_account(legaccounting_orgid) 获得记账账号通过科目机构类型账务机构确定一个唯一的账号
""" """
def __init__(self, caller): def __init__(self, caller):
debug(f'caller={caller}')
if isinstance(caller, list): if isinstance(caller, list):
self.callers = caller self.callers = caller
caller = self.callers[0] caller = self.callers[0]
@ -47,6 +48,7 @@ class Accounting:
async def setup_all_accounting_legs(self): async def setup_all_accounting_legs(self):
self.accounting_legs = [] self.accounting_legs = []
debug(f'{self.callers=}')
for caller in self.callers: for caller in self.callers:
self.caller = caller self.caller = caller
self.curdate = caller.curdate self.curdate = caller.curdate