solidus_bactracs 3.5.0 → 3.5.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e535e8a59bea282ee76d1fe01b99f738d19061abf29d1745e40bdcce792337e
|
4
|
+
data.tar.gz: 75d5f6d07e1fd88e1f30c46418c674059b582aca33a884b16830be441d39a708
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39918c8782cd792f3fa091b2762dda89ea07db28a33a0598711fa561010a9eef293e2d7eb94c5f921f23a49a9afef5d995ee242f3a8fb4ce949f41a53d36f038
|
7
|
+
data.tar.gz: b47a72baad881dfe7645addb7caadf4be5529d90d625b73bd32341d992d04ad110d56f7dc8730744a46ba55cb6edb45b1e3a19bbe6efe78a6363fbb2a17822c4
|
@@ -13,9 +13,6 @@ module SolidusBactracs
|
|
13
13
|
def call(sguid: nil)
|
14
14
|
order = @shipment.order
|
15
15
|
user = @shipment.user
|
16
|
-
rma_type = safe_rma_type
|
17
|
-
rp_location = get_rp_location
|
18
|
-
df_part = get_df_part
|
19
16
|
|
20
17
|
xml = Builder::XmlMarkup.new
|
21
18
|
xml.instruct!(:xml, :encoding => "UTF-8")
|
@@ -26,7 +23,7 @@ module SolidusBactracs
|
|
26
23
|
xml.sGuid sguid
|
27
24
|
xml.NewRMA {
|
28
25
|
xml.RMANumber @shipment.number
|
29
|
-
xml.RMATypeName
|
26
|
+
xml.RMATypeName safe_rma_type
|
30
27
|
xml.RMASubTypeName
|
31
28
|
xml.CustomerRef
|
32
29
|
xml.InboundShippingPriority
|
@@ -95,8 +92,8 @@ module SolidusBactracs
|
|
95
92
|
xml.WarrantyRepair
|
96
93
|
xml.RMALineTest
|
97
94
|
xml.InboundShipWeight variant.weight.to_f
|
98
|
-
xml.RPLocation
|
99
|
-
xml.DFPart
|
95
|
+
xml.RPLocation get_rp_location
|
96
|
+
xml.DFPart get_df_part
|
100
97
|
}
|
101
98
|
end
|
102
99
|
|
@@ -107,9 +104,8 @@ module SolidusBactracs
|
|
107
104
|
|
108
105
|
def get_rp_location
|
109
106
|
#Double verifing
|
110
|
-
return nil if
|
107
|
+
return nil if safe_rma_type == "4"
|
111
108
|
|
112
|
-
rp_location = @shipment.get_rma_rp_location if @shipment.get_rma_rp_location
|
113
109
|
@config.default_rp_location.call(@shipment)
|
114
110
|
end
|
115
111
|
|
@@ -119,7 +115,7 @@ module SolidusBactracs
|
|
119
115
|
|
120
116
|
def get_df_part
|
121
117
|
df_part =
|
122
|
-
if
|
118
|
+
if safe_rma_type == "4"
|
123
119
|
@shipment.number
|
124
120
|
else
|
125
121
|
nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_bactracs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zeryab Ali
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-11-
|
12
|
+
date: 2022-11-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|