class ESA::Accounts::Asset

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 en.wikipedia.org/wiki/Asset Assets

@author Lenno Nagel

Public Instance Methods

update_normal_balance() click to toggle source

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

# 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