Class: Pacioli::Credit
- Inherits:
-
Transaction
- Object
- ActiveRecord::Base
- Transaction
- Pacioli::Credit
- Defined in:
- lib/pacioli/credit.rb
Instance Method Summary collapse
Methods inherited from Transaction
Instance Method Details
#credit? ⇒ Boolean
4 5 6 |
# File 'lib/pacioli/credit.rb', line 4 def credit? true end |
#to_hash ⇒ Object
8 9 10 |
# File 'lib/pacioli/credit.rb', line 8 def to_hash {description: self.journal_entry.description, date: self.dated, credit_amount: self.amount, debit_amount: "", balance: self.party.balance_at(self.dated)} end |