Add activity type field #2691

This commit is contained in:
Martin Lensment 2015-07-06 13:02:19 +03:00
parent fa4a2d2987
commit d6a151b141
9 changed files with 45 additions and 67 deletions

View file

@ -62,6 +62,11 @@ describe BankStatement do
AccountActivity.count.should == 1
a = AccountActivity.last
a.description.should == "Invoice no. #{invoice.number}"
a.sum.should == BigDecimal.new('200.0')
a.activity_type = AccountActivity::ADD_CREDIT
r.cash_account.balance.should == 200.0
bs.bank_transactions.unbinded.count.should == 1