activerecord_sqlserver_crm 4.2.15 → 4.2.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6975e80b1bd52beadda3e923575d854291346ec5
4
- data.tar.gz: 9d5764f836c9d4d573ae54f995f18d895271d815
3
+ metadata.gz: eab31a448120bf7fc5683cc65291b53f63f8e06a
4
+ data.tar.gz: fe70d8ad786ff21e68f91d0f2aaa10d22f2d7ee7
5
5
  SHA512:
6
- metadata.gz: 209e4c9d7f9ea364b9fe8c5dd59c4964830edd912d9d4014967200f8f98daadea9ca5c5d9e6096940fbe98f984b7e991917715c8c8ad73192dd5b88a30fad3f4
7
- data.tar.gz: 094c556f3b8b9a3fbb1234e303241e6806f36d63ee78992af77b0ec7d5edcf0ee5dff1634d7c889417b7ba6911cfc9c6addfb64ed1a78a79408d923ab539b5ad
6
+ metadata.gz: 8edcd95e314c5e1fd3b1de4399d7f640def39075a4b676cb0362a4e7e327d6337e9f883c030f933f9e7763d6068e34eb68d8916175ab592d7c56f38a504650fe
7
+ data.tar.gz: 4d5c9f2d1c0611517a084121f2f68473f004d469c9238d4acded057797abed9bc22b201f925a4bd4de3b0e0e0a92413b5be8600e213e51d45a4b45752da85c96
@@ -4,7 +4,10 @@ module Crm
4
4
  self.primary_key = "OpportunityId"
5
5
 
6
6
  belongs_to :campaign, foreign_key: 'CampaignId', crm_key: 'campaignid'
7
- belongs_to :contact, foreign_key: 'contactid', crm_key: 'parentcontactid'
7
+ belongs_to :account, foreign_key: 'AccountId', crm_key: 'customerid_account'
8
+ belongs_to :contact, foreign_key: 'ContactId', crm_key: 'customerid_contact'
9
+ belongs_to :parent_account, foreign_key: 'ParentAccountId', crm_key: 'parentaccountid', class_name: 'Crm::Account'
10
+ belongs_to :parent_contact, foreign_key: 'ParentContactId', crm_key: 'parentcontactid', class_name: 'Crm::Contact'
8
11
 
9
12
  has_many :invoices, foreign_key: 'OpportunityId'
10
13
  has_many :notes, foreign_key: 'ObjectId'
@@ -1,3 +1,3 @@
1
1
  module ActiverecordSqlserverCrm
2
- VERSION = "4.2.15"
2
+ VERSION = "4.2.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_sqlserver_crm
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.15
4
+ version: 4.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rolf Lawrenz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-07 00:00:00.000000000 Z
11
+ date: 2016-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails