mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Add activity type field #2691
This commit is contained in:
parent
fa4a2d2987
commit
d6a151b141
9 changed files with 45 additions and 67 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue