Sha256: d6b515b8ad7832f1e0e819a979769679138f2045db8dd9ba1bab444f5b23960c
Contents?: true
Size: 617 Bytes
Versions: 9
Compression:
Stored size: 617 Bytes
Contents
module ESA module Accounts # The Equity class is an account type used to represents owners rights to the assets. # # === Normal Balance # The normal balance on Equity accounts is a *Credit*. # # @see http://en.wikipedia.org/wiki/Equity_(finance) Equity # # @author Lenno Nagel class Equity < ESA::Account # The normal balance for the account. Must be overridden in implementations. def update_normal_balance unless self.contra self.normal_balance = :credit else self.normal_balance = :debit end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems