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