示例#1
0
文件: adjustment.py 项目: xgenvn/acc
 def commit(self):
     for t in ACCOUNT_TYPE.values():
         self.adjust_account(t)
     self.restore_accounts()
示例#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()
示例#3
0
 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
 def commit(self):
     for t in ACCOUNT_TYPE.values():
         self.adjust_account(t)
     self.restore_accounts()