has_accounts 0.17.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/has_accounts/model.rb +1 -1
- data/lib/has_accounts/version.rb +1 -1
- metadata +5 -7
data/lib/has_accounts/model.rb
CHANGED
|
@@ -10,7 +10,7 @@ module HasAccounts
|
|
|
10
10
|
def direct_balance(value_date = nil, direct_account = nil)
|
|
11
11
|
return BigDecimal.new('0') unless proxy_owner.direct_account
|
|
12
12
|
|
|
13
|
-
direct_account ||=
|
|
13
|
+
direct_account ||= proxy_association.owner.direct_account
|
|
14
14
|
balance = BigDecimal.new('0')
|
|
15
15
|
|
|
16
16
|
# Scope by value_date
|
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: 89
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 17
|
|
9
|
-
-
|
|
10
|
-
version: 0.17.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.17.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- "Simon H\xC3\xBCrlimann (CyT)"
|
|
@@ -25,12 +25,11 @@ dependencies:
|
|
|
25
25
|
requirements:
|
|
26
26
|
- - ~>
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
hash:
|
|
28
|
+
hash: 5
|
|
29
29
|
segments:
|
|
30
30
|
- 3
|
|
31
31
|
- 1
|
|
32
|
-
|
|
33
|
-
version: 3.1.0
|
|
32
|
+
version: "3.1"
|
|
34
33
|
type: :runtime
|
|
35
34
|
version_requirements: *id001
|
|
36
35
|
- !ruby/object:Gem::Dependency
|
|
@@ -137,4 +136,3 @@ specification_version: 3
|
|
|
137
136
|
summary: HasAccounts provides models for financial accounting.
|
|
138
137
|
test_files: []
|
|
139
138
|
|
|
140
|
-
has_rdoc:
|