debitcredit 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/app/models/debitcredit/transaction.rb +1 -0
- data/lib/debitcredit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cfcdb2b31ab7056ea1dd628dda187da43281c4c
|
4
|
+
data.tar.gz: f507fc2e81e79a87938ae214d96701867dfe5bd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f59d1cd9b5e394b8e467749e973508cd493a403775e335104130f66554034f3bc1b791b81433c8ab1f33ef84748dad476b31bdb21002114e29326eda7f4c5de1
|
7
|
+
data.tar.gz: 6ad0c2cb0b0bd1fe2815095d2ac4888a986b8a18d8ee725a7357fe7d5c9d4140f3256f68b6ed0a1812eb54192a55809aa842daa052399955db6a07b60283ed50
|
data/README.md
CHANGED
@@ -5,6 +5,17 @@
|
|
5
5
|
|
6
6
|
Double Entry Accounting for Rails Applications
|
7
7
|
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
* add `get 'debitcredit'` to your `Gemfile`
|
11
|
+
* and run `bundle install`
|
12
|
+
* run `rake debitcredit:install:migrations db:migrate`
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
* and run `bundle update debitcredit`
|
17
|
+
* run `rake debitcredit:install:migrations db:migrate`
|
18
|
+
|
8
19
|
## Account Types, Debits and Credits
|
9
20
|
|
10
21
|
<http://en.wikipedia.org/wiki/Debits_and_credits>
|
@@ -3,6 +3,7 @@ module Debitcredit
|
|
3
3
|
class Transaction < ActiveRecord::Base
|
4
4
|
belongs_to :reference, polymorphic: true
|
5
5
|
belongs_to :parent_transaction, class_name: 'Debitcredit::Transaction'
|
6
|
+
has_many :child_transactions, class_name: 'Debitcredit::Transaction', foreign_key: 'parent_transaction_id'
|
6
7
|
belongs_to :inverse_transaction, class_name: 'Debitcredit::Transaction'
|
7
8
|
has_many :items, dependent: :destroy, autosave: true
|
8
9
|
|
data/lib/debitcredit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: debitcredit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vitaly Kushner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -213,7 +213,7 @@ files:
|
|
213
213
|
- MIT-LICENSE
|
214
214
|
- Rakefile
|
215
215
|
- README.md
|
216
|
-
homepage: http://github.com/
|
216
|
+
homepage: http://github.com/vitaly/debitcredit
|
217
217
|
licenses: []
|
218
218
|
metadata: {}
|
219
219
|
post_install_message:
|