astrails / deb

Double Entry Bookkeeping for Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Double Entry Bookkeeping for Rails

Inspired by (plutus)[https://github.com/mbulat/plutus].

Depricated, plz use [https://github.com/astrails/debitcredit]https://github.com/astrails/debitcredit

Installation

  gem "deb"

  rails g deb
  rake db:migrate

Example

  @asset = Account.create(kind: "asset")
  @revenue = Account.create(kind: "revenue")
  @liability = Account.create(kind: "liability")

  Transaction.start! do
    debit @asset, 12
    credit @revenue, 5
    credit @liability, 7
    description "foobar"
    reference @mysome_record
  end

TODO: more documentation: balances

Copyright (c) 2013 Boris Nadion

About

Double Entry Bookkeeping for Rails

License:MIT License


Languages

Language:Ruby 89.6%Language:HTML 6.9%Language:JavaScript 1.9%Language:CSS 1.6%