Exemple #1
0
 def commit(self):
     for t in ACCOUNT_TYPE.values():
         self.adjust_account(t)
     self.restore_accounts()
Exemple #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()
Exemple #3
0
 def setup_accounts(self):
     self.accounts = {}
     for account_type in ACCOUNT_TYPE.values():
         self.accounts[account_type] = Account(Currency('USD'), account_type)
Exemple #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()
Exemple #5
0
 def setup_accounts(self):
     self.accounts = {}
     for account_type in ACCOUNT_TYPE.values():
         self.accounts[account_type] = Account(Currency('USD'),
                                               account_type)
Exemple #6
0
 def commit(self):
     for t in ACCOUNT_TYPE.values():
         self.adjust_account(t)
     self.restore_accounts()