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 +4 -4
- data/app/models/crm/opportunity.rb +4 -1
- data/lib/activerecord_sqlserver_crm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eab31a448120bf7fc5683cc65291b53f63f8e06a
|
4
|
+
data.tar.gz: fe70d8ad786ff21e68f91d0f2aaa10d22f2d7ee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 :
|
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'
|
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.
|
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-
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|