예제 #1
0
파일: adjustment.py 프로젝트: xgenvn/acc
 def commit(self):
     for t in ACCOUNT_TYPE.values():
         self.adjust_account(t)
     self.restore_accounts()
예제 #2
0
파일: electricity.py 프로젝트: knoguchi/acc
 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()
예제 #3
0
파일: electricity.py 프로젝트: knoguchi/acc
 def setup_accounts(self):
     self.accounts = {}
     for account_type in ACCOUNT_TYPE.values():
         self.accounts[account_type] = Account(Currency('USD'), account_type)
예제 #4
0
파일: electricity.py 프로젝트: xgenvn/acc
 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()
예제 #5
0
파일: electricity.py 프로젝트: xgenvn/acc
 def setup_accounts(self):
     self.accounts = {}
     for account_type in ACCOUNT_TYPE.values():
         self.accounts[account_type] = Account(Currency('USD'),
                                               account_type)
예제 #6
0
파일: adjustment.py 프로젝트: knoguchi/acc
 def commit(self):
     for t in ACCOUNT_TYPE.values():
         self.adjust_account(t)
     self.restore_accounts()