Skip to content

Commit

Permalink
Merge 30995a1 into 00a98af
Browse files Browse the repository at this point in the history
  • Loading branch information
vonchristian committed Jun 25, 2018
2 parents 00a98af + 30995a1 commit a7e075b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/plutus/entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class Entry < ActiveRecord::Base
belongs_to :commercial_document, :polymorphic => true
end

has_many :credit_amounts, :extend => AmountsExtension, :class_name => 'Plutus::CreditAmount', :inverse_of => :entry
has_many :debit_amounts, :extend => AmountsExtension, :class_name => 'Plutus::DebitAmount', :inverse_of => :entry
has_many :credit_amounts, :extend => AmountsExtension, :class_name => 'Plutus::CreditAmount', :inverse_of => :entry, dependent: :destroy
has_many :debit_amounts, :extend => AmountsExtension, :class_name => 'Plutus::DebitAmount', :inverse_of => :entry, dependent: :destroy
has_many :credit_accounts, :through => :credit_amounts, :source => :account, :class_name => 'Plutus::Account'
has_many :debit_accounts, :through => :debit_amounts, :source => :account, :class_name => 'Plutus::Account'

Expand Down

0 comments on commit a7e075b

Please sign in to comment.