has_accounts 0.17.2 → 0.17.3

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/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  has_accounts
2
2
  ============
3
3
 
4
+ [![Build Status](https://secure.travis-ci.org/huerlisi/has_accounts.png)](http://travis-ci.org/huerlisi/has_accounts)
5
+
4
6
  Rails plugin providing financal accounting models and helpers.
5
7
 
6
8
 
@@ -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 proxy_owner.direct_account
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')
@@ -1,3 +1,3 @@
1
1
  module HasAccounts
2
- VERSION = "0.17.2"
2
+ VERSION = "0.17.3"
3
3
  end
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: 95
4
+ hash: 93
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 17
9
- - 2
10
- version: 0.17.2
9
+ - 3
10
+ version: 0.17.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Simon H\xC3\xBCrlimann (CyT)"