コード例 #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()