diff --git a/accounting/accounting_config.py b/accounting/accounting_config.py index 3350e3f..901cb0d 100644 --- a/accounting/accounting_config.py +++ b/accounting/accounting_config.py @@ -41,20 +41,9 @@ class Accounting: if isinstance(caller, list): self.callers = caller caller = self.callers[0] - self.caller = caller - self.curdate = caller.curdate - self.realtimesettled = False - self.timestamp = caller.timestamp - self.billid = caller.billid - self.action = caller.action - self.summary = f'{self.caller.orderid}:{self.caller.billid}' - self.providerid = caller.providerid - self.productid = caller.productid - self.resellerid = caller.resellerid - self.customerid = caller.customerid - self.own_salemode = None - self.reseller_salemode = None - self.variable = caller.variable + else: + self.callers = [caller] + self.caller = caller async def setup_all_accounting_legs(self): self.accounting_legs = []