Sha256: a1c893be14c0c212d8ca5ed1ae1c661d4d5f1c535d271fc6bf4fa642be44882a
Contents?: true
Size: 641 Bytes
Versions: 9
Compression:
Stored size: 641 Bytes
Contents
module ESA module Accounts # The Expense class is an account type used to represents assets or services consumed in the generation of revenue. # # === Normal Balance # The normal balance on Expense accounts is a *Debit*. # # @see http://en.wikipedia.org/wiki/Expense Expenses # # @author Lenno Nagel class Expense < ESA::Account # The normal balance for the account. Must be overridden in implementations. def update_normal_balance unless self.contra self.normal_balance = :debit else self.normal_balance = :credit end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems