go_import 3.0.14 → 3.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/sources/easy/.go_import/runner.rb +3 -4
- metadata +2 -2
@@ -87,7 +87,7 @@ def convert_source
|
|
87
87
|
end
|
88
88
|
|
89
89
|
process_rows PROJECT_DOCUMENT_FILE do |row|
|
90
|
-
rootmodel.add_file(to_deal_document(row,
|
90
|
+
rootmodel.add_file(to_deal_document(row, rootmodel))
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
@@ -188,7 +188,7 @@ def to_organization_document(row, rootmodel)
|
|
188
188
|
return file
|
189
189
|
end
|
190
190
|
|
191
|
-
def to_deal_document(row,
|
191
|
+
def to_deal_document(row, rootmodel)
|
192
192
|
file = GoImport::File.new()
|
193
193
|
|
194
194
|
file.integration_id = "d-#{row['idDocument']}"
|
@@ -200,8 +200,7 @@ def to_deal_document(row, includes, rootmodel)
|
|
200
200
|
file.created_by = rootmodel.import_coworker
|
201
201
|
end
|
202
202
|
|
203
|
-
|
204
|
-
deal = rootmodel.find_deal_by_integration_id(deal_id)
|
203
|
+
deal = rootmodel.find_deal_by_integration_id(row['idProject'])
|
205
204
|
if deal.nil?
|
206
205
|
return nil
|
207
206
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: go_import
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-10-
|
15
|
+
date: 2014-10-22 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: iso_country_codes
|