gd_bam 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
data/lib/bam/version.rb
CHANGED
@@ -20,18 +20,6 @@
|
|
20
20
|
// Transforms input record into output record.
|
21
21
|
function integer transform() {
|
22
22
|
$out.0.* = $in.0.*;
|
23
|
-
|
24
|
-
if ($in.0.Probability == null) {
|
25
|
-
$out.0.Probability = "0";
|
26
|
-
} else {
|
27
|
-
$out.0.Probability = toString(str2decimal($in.0.Probability)/100D);
|
28
|
-
}
|
29
|
-
|
30
|
-
if ($in.0.Amount == null) {
|
31
|
-
$out.0.Amount = "0";
|
32
|
-
} else {
|
33
|
-
$out.0.Amount = toString(round(str2decimal($in.0.Amount)*100D)/100D);
|
34
|
-
}
|
35
23
|
|
36
24
|
if ($in.0.CloseDate != null && $in.0.CloseDate != "" && left($in.0.CloseDate, 4) < "1950") {
|
37
25
|
$out.0.CloseDate = '1950-01-01';
|
@@ -132,7 +132,19 @@ function integer transform() {
|
|
132
132
|
// Transforms input record into output record.
|
133
133
|
function integer transform() {
|
134
134
|
$out.0.* = $in.0.*;
|
135
|
+
|
136
|
+
if ($in.0.Probability == null) {
|
137
|
+
$out.0.Probability = "0";
|
138
|
+
} else {
|
139
|
+
$out.0.Probability = toString(str2decimal($in.0.Probability)/100D);
|
140
|
+
}
|
135
141
|
|
142
|
+
if ($in.0.Amount == null) {
|
143
|
+
$out.0.Amount = "0";
|
144
|
+
} else {
|
145
|
+
$out.0.Amount = toString(round(str2decimal($in.0.Amount)*100D)/100D);
|
146
|
+
}
|
147
|
+
|
136
148
|
if ($in.0.CreatedDate != null) {
|
137
149
|
$out.0.CreatedDate = left($in.0.CreatedDate, 10);
|
138
150
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gd_bam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|