has_accounts 0.17.3 → 0.17.4
Sign up to get free protection for your applications and to get access to all the features.
data/app/models/booking.rb
CHANGED
@@ -4,6 +4,9 @@ class Booking < ActiveRecord::Base
|
|
4
4
|
validates :amount, :presence => true, :numericality => true
|
5
5
|
validates_time :value_date
|
6
6
|
|
7
|
+
# Template
|
8
|
+
belongs_to :template, :polymorphic => true
|
9
|
+
|
7
10
|
# Account
|
8
11
|
belongs_to :debit_account, :foreign_key => 'debit_account_id', :class_name => "Account"
|
9
12
|
belongs_to :credit_account, :foreign_key => 'credit_account_id', :class_name => "Account"
|
@@ -146,14 +149,6 @@ class Booking < ActiveRecord::Base
|
|
146
149
|
end
|
147
150
|
end
|
148
151
|
|
149
|
-
# Templates
|
150
|
-
def booking_template_id
|
151
|
-
nil
|
152
|
-
end
|
153
|
-
|
154
|
-
def booking_template_id=(value)
|
155
|
-
end
|
156
|
-
|
157
152
|
# Helpers
|
158
153
|
def split(amount, params = {})
|
159
154
|
# Clone
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# English locale
|
2
|
+
en:
|
3
|
+
activerecord:
|
4
|
+
models:
|
5
|
+
account: Account
|
6
|
+
bank_account: Bank account
|
7
|
+
bank: Bank
|
8
|
+
account_type: Account type
|
9
|
+
booking: Booking
|
10
|
+
|
11
|
+
attributes:
|
12
|
+
account:
|
13
|
+
code: No.
|
14
|
+
title: Title
|
15
|
+
saldo: Saldo
|
16
|
+
account_type: Acocunt type
|
17
|
+
bank_account:
|
18
|
+
number: Account no.
|
19
|
+
iban: IBAN
|
20
|
+
pc_id: VESR no.
|
21
|
+
esr_id: VESR identifier
|
22
|
+
bank:
|
23
|
+
clearing: Clearing no.
|
24
|
+
swift: SWIFT no.
|
25
|
+
account_type:
|
26
|
+
name: Name
|
27
|
+
title: Title
|
28
|
+
booking:
|
29
|
+
code: Booking no.
|
30
|
+
value_date: Value date
|
31
|
+
title: Title
|
32
|
+
amount: Amount
|
33
|
+
comments: Remarks
|
34
|
+
credit_account: Credit
|
35
|
+
debit_account: Debit
|
36
|
+
reference: Reference
|
37
|
+
reference_type: Reference type
|
38
|
+
reference_id: Reference ID
|
39
|
+
text: Text
|
40
|
+
date: Date
|
41
|
+
balance: Saldo
|
42
|
+
edit: Edit
|
43
|
+
destroy: Delete
|
44
|
+
valuta: Valuta
|
45
|
+
value: Amount
|
46
|
+
|
47
|
+
# Title customizations
|
48
|
+
account:
|
49
|
+
index:
|
50
|
+
title: Accounts
|
51
|
+
bank_account:
|
52
|
+
index:
|
53
|
+
title: Bank Accounts
|
54
|
+
bank:
|
55
|
+
index:
|
56
|
+
title: Banks
|
57
|
+
account_type:
|
58
|
+
index:
|
59
|
+
title: Account Types
|
60
|
+
booking:
|
61
|
+
index:
|
62
|
+
title: Booking Journal
|
data/lib/has_accounts/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_accounts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 83
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 17
|
9
|
-
-
|
10
|
-
version: 0.17.
|
9
|
+
- 4
|
10
|
+
version: 0.17.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Simon H\xC3\xBCrlimann (CyT)"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-02-06 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rails
|
@@ -93,9 +93,11 @@ files:
|
|
93
93
|
- app/models/bank_account.rb
|
94
94
|
- app/models/booking.rb
|
95
95
|
- config/locales/de.yml
|
96
|
+
- config/locales/en.yml
|
96
97
|
- db/migrate/20111108000000_create_has_accounts_tables.rb
|
97
98
|
- db/migrate/20111109093857_use_string_for_account_number.rb
|
98
99
|
- db/migrate/20111230121259_bank_now_inherits_from_person.rb
|
100
|
+
- db/migrate/20111230222702_add_template_to_bookings.rb
|
99
101
|
- lib/has_accounts.rb
|
100
102
|
- lib/has_accounts/class_methods.rb
|
101
103
|
- lib/has_accounts/core_ext/rounding.rb
|
@@ -133,9 +135,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
135
|
requirements: []
|
134
136
|
|
135
137
|
rubyforge_project:
|
136
|
-
rubygems_version: 1.8.
|
138
|
+
rubygems_version: 1.8.15
|
137
139
|
signing_key:
|
138
140
|
specification_version: 3
|
139
141
|
summary: HasAccounts provides models for financial accounting.
|
140
142
|
test_files: []
|
141
143
|
|
144
|
+
has_rdoc:
|