Class: Pacioli::Debit

Inherits:
Transaction show all
Defined in:
lib/pacioli/debit.rb

Instance Method Summary collapse

Methods inherited from Transaction

before, between, #credit?

Instance Method Details

#debit?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/pacioli/debit.rb', line 4

def debit?
  true
end

#to_hashObject



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