Class: Pacioli::Credit

Inherits:
Transaction
  • Object
show all
Defined in:
lib/pacioli/credit.rb

Instance Method Summary collapse

Methods inherited from Transaction

before, between, #debit?

Instance Method Details

#credit?Boolean

Returns:

  • (Boolean)


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

def credit?
  true
end

#to_hashObject



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