has_accounts 0.17.2 → 0.17.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/lib/has_accounts/model.rb +1 -1
- data/lib/has_accounts/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
data/lib/has_accounts/model.rb
CHANGED
@@ -8,7 +8,7 @@ module HasAccounts
|
|
8
8
|
has_many :bookings, :as => :reference, :dependent => :destroy, :inverse_of => :reference do
|
9
9
|
# TODO: duplicated in Booking (without parameter)
|
10
10
|
def direct_balance(value_date = nil, direct_account = nil)
|
11
|
-
return BigDecimal.new('0') unless
|
11
|
+
return BigDecimal.new('0') unless proxy_association.owner.direct_account
|
12
12
|
|
13
13
|
direct_account ||= proxy_association.owner.direct_account
|
14
14
|
balance = BigDecimal.new('0')
|
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: 93
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 17
|
9
|
-
-
|
10
|
-
version: 0.17.
|
9
|
+
- 3
|
10
|
+
version: 0.17.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Simon H\xC3\xBCrlimann (CyT)"
|