Module: AccountScopeExtension

Defined in:
app/models/account_scope_extension.rb

Instance Method Summary collapse

Instance Method Details

#saldo(selector = Date.today, inclusive = true) ⇒ Object


2
3
4
5
6
7
8
9
10
# File 'app/models/account_scope_extension.rb', line 2

def saldo(selector = Date.today, inclusive = true)
  new_saldo = 0

  for  in all
    new_saldo += .saldo(selector, inclusive)
  end

  new_saldo
end