mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Increase account balance without vat #2663
This commit is contained in:
parent
a437ef3ed9
commit
863f32a026
3 changed files with 3 additions and 3 deletions
|
@ -75,7 +75,7 @@ class BankTransaction < ActiveRecord::Base
|
|||
create_account_activity(
|
||||
account: registrar.cash_account,
|
||||
invoice: invoice,
|
||||
sum: sum,
|
||||
sum: invoice.sum_without_vat,
|
||||
currency: currency,
|
||||
description: description
|
||||
)
|
||||
|
|
|
@ -63,7 +63,7 @@ describe BankStatement do
|
|||
|
||||
AccountActivity.count.should == 1
|
||||
|
||||
r.cash_account.balance.should == 240.0
|
||||
r.cash_account.balance.should == 200.0
|
||||
|
||||
bs.bank_transactions.unbinded.count.should == 1
|
||||
bs.partially_binded?.should == true
|
||||
|
|
|
@ -45,7 +45,7 @@ describe BankTransaction do
|
|||
bt.bind_invoice(invoice.number)
|
||||
|
||||
invoice.receipt_date.should_not be_blank
|
||||
r.cash_account.balance.should == 240.0
|
||||
r.cash_account.balance.should == 200.0
|
||||
end
|
||||
|
||||
it 'should not bind transaction with mismatching sums' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue