Class: ESA::Accounts::Asset

Inherits:
ESA::Account
  • Object
show all
Defined in:
app/models/esa/accounts/asset.rb

Overview

The Asset class is an account type used to represents resources owned by the business entity.

Normal Balance

The normal balance on Asset accounts is a Debit.

See Also:

Author:

  • Lenno Nagel

Instance Method Summary collapse

Methods inherited from ESA::Account

#balance, namespaced_type, valid_type?

Instance Method Details

#update_normal_balanceObject

The normal balance for the account. Must be overridden in implementations.



13
14
15
16
17
18
19
# File 'app/models/esa/accounts/asset.rb', line 13

def update_normal_balance
  unless self.contra
    self.normal_balance = :debit
  else
    self.normal_balance = :credit
  end
end