Project

aloe

0.0
No commit activity in last 3 years
No release in over 3 years
Aloe is double-entry bookkeeping engine for Rails apps
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Aloe gem

Build Status

Aloe is Ruby gem that provides double-entry bookkeeping infrastructure for Rails. The name of gem is derived from fundamental accounting equation A = L + OE.

Instalation

Add aloe gem into your Gemfile:

gem 'aloe'

Generate the migration:

rails generate aloe

Then run the migrations:

rake db:migrate

Example usage:

Each account must name, owner or both. Owner is an entity in your application, for example following piece of code returns account belonging to the user:

user = User.first
account = Aloe::Ledger.find_account(user, :USD)

Moving money from one account to another is accomplished by creating an entry in the ledger:

amount = Money.new(500, :USD)
Aloe::Ledger.create_entry money, from: debit_account, to: credit_accoun,

TODO

  • Multi-legged transactions support
  • Currency converting transactions

Dependencies

Aloe is Rails 4 engine. All models are based on ActiveRecord.

Money is used for handling monetary values.

Issues

If you have problems, please create a Github Issue.

License

Aloe is Copyright © 2013 Blueberry.cz Apps s.r.o. It is free software, and may be redistributed under the terms specified in the LICENSE file.