Ejemplo n.º 1
0
 def commit(self):
     for t in ACCOUNT_TYPE.values():
         self.adjust_account(t)
     self.restore_accounts()
Ejemplo n.º 2
0
 def commit_adjustment(self, adjustment):
     assert self.is_adjusting()
     for account_type in ACCOUNT_TYPE.values():
         self.adjust_account(account_type, adjustment)
     self.end_shadow_accounts()
Ejemplo n.º 3
0
 def setup_accounts(self):
     self.accounts = {}
     for account_type in ACCOUNT_TYPE.values():
         self.accounts[account_type] = Account(Currency('USD'), account_type)
Ejemplo n.º 4
0
 def commit_adjustment(self, adjustment):
     assert self.is_adjusting()
     for account_type in ACCOUNT_TYPE.values():
         self.adjust_account(account_type, adjustment)
     self.end_shadow_accounts()
Ejemplo n.º 5
0
 def setup_accounts(self):
     self.accounts = {}
     for account_type in ACCOUNT_TYPE.values():
         self.accounts[account_type] = Account(Currency('USD'),
                                               account_type)
Ejemplo n.º 6
0
 def commit(self):
     for t in ACCOUNT_TYPE.values():
         self.adjust_account(t)
     self.restore_accounts()