Sha256: 1d2c1a394eb04cc48e324bc47c3d7de7dfe76171001765d2f90dd657b22c7e1c

Contents?: true

Size: 275 Bytes

Versions: 19

Compression:

Stored size: 275 Bytes

Contents

module Pacioli
  class Credit < Transaction

    def credit?
      true
    end

    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

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pacioli-0.0.29 lib/pacioli/credit.rb
pacioli-0.0.28 lib/pacioli/credit.rb
pacioli-0.0.27 lib/pacioli/credit.rb
pacioli-0.0.26 lib/pacioli/credit.rb
pacioli-0.0.25 lib/pacioli/credit.rb
pacioli-0.0.24 lib/pacioli/credit.rb
pacioli-0.0.23 lib/pacioli/credit.rb
pacioli-0.0.22 lib/pacioli/credit.rb
pacioli-0.0.21 lib/pacioli/credit.rb
pacioli-0.0.20 lib/pacioli/credit.rb
pacioli-0.0.19 lib/pacioli/credit.rb
pacioli-0.0.18 lib/pacioli/credit.rb
pacioli-0.0.17 lib/pacioli/credit.rb
pacioli-0.0.16 lib/pacioli/credit.rb
pacioli-0.0.15 lib/pacioli/credit.rb
pacioli-0.0.14 lib/pacioli/credit.rb
pacioli-0.0.13 lib/pacioli/credit.rb
pacioli-0.0.12 lib/pacioli/credit.rb
pacioli-0.0.11 lib/pacioli/credit.rb