Giter Club home page Giter Club logo

has_accounts's Introduction

has_accounts

Build Status

Rails plugin providing financal accounting models and helpers.

Install

In Rails simply add to your Gemfile:

gem 'has_accounts'

Integration

Generate and run migrations

rake has_accounts:install:migrations
rake db:migrate

Seed basic account data

AccountType.create!([
  {:name => "current_assets", :title => "Umlaufvermögen"},
  {:name => "capital_assets", :title => "Anlagevermögen"},
  {:name => "outside_capital", :title => "Fremdkapital"},
  {:name => "equity_capital", :title => "Eigenkapital"},
  {:name => "costs", :title => "Aufwand"},
  {:name => "earnings", :title => "Ertrag"},
])

Add specific seed depending on the needs of your project, e.g.:

current_assets = AccountType.find_by_name('current_assets')
capital_assets = AccountType.find_by_name('capital_assets')
earnings = AccountType.find_by_name('earnings')
costs = AccountType.find_by_name('costs')

Account.create!([
  {:code => "1000", :title => "Kasse", :account_type => current_assets},
  {:code => "1100", :title => "Debitoren", :account_type => current_assets},
  {:code => "3200", :title => "Dienstleistungsertrag", :account_type => earnings},
  {:code => "3900", :title => "Debitorenverlust", :account_type => costs},
  {:code => "8000", :title => "Ausserordentlicher Ertrag", :account_type => earnings}
])

Example

A few models are available:

class Booking
class Account
class AccountType

There's also a ready to use module available to attach accountable functionality to existing models.

To use it, simply add the following to your Model:

include HasAccounts::Model

License

Released under the MIT license.

has_accounts's People

Contributors

huerlisi avatar panterch avatar

Stargazers

Yasin ATEŞ avatar Marco Roth avatar Kelsey Hannan avatar  avatar Scott Lieberman avatar Jeff Kereakoglow avatar  avatar David Aaron Fendley avatar Ashwin Murali avatar Andrew Griffith avatar Ekrem Karaca avatar nathan fish avatar Roman Spiridonov avatar Alex Chen avatar Patrick Aljord avatar Michael Kessler avatar Gabriel Mazetto avatar           ​ ⁠             ⁠   Ån̶t̶hia¯₣ab̷r̷ε  ⚜ avatar M Narayanan avatar Christian Barcenas avatar Daniel Sell avatar  avatar A. avatar Praveen R avatar Seyhun Akyürek avatar Руслан Корнев avatar Ben Feigin avatar Ivan Turkovic avatar  avatar Ivan Storck avatar

Watchers

 avatar Severin avatar Praveen R avatar James Cloos avatar kitsane avatar Tawanda avatar Amy avatar

has_accounts's Issues

Fix DEPRECATION WARNING

DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from  at /Users/seb/src/dental/db/migrate/20130530101055_bank_now_inherits_from_person.has_accounts.rb:3)
=

Create a Double-Entry Bookkeeping Application

Dear Huerlisi,

How can I create a view wrapper that allows me to create a double entry book keeping application based on has_accounts? All I would like to do is able set up the accounts and to enter journal entries and then view P&L, Balance Sheet, Trial Balance, General Ledger, Account Details and Cash Flow statements.

Is it possible to do this using just the has_accounts gem?

If so, how can I make it happen? Can you please give me a rough idea?

Thank you,
Regards,

Jai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.