diff --git a/lib/syspro/business_objects/models/sor_detail.rb b/lib/syspro/business_objects/models/sor_detail.rb
index 52f3e2f..8cc5a8b 100644
--- a/lib/syspro/business_objects/models/sor_detail.rb
+++ b/lib/syspro/business_objects/models/sor_detail.rb
@@ -20,7 +20,7 @@ module Syspro
:jobs_exist_flag, :alternate_key, :hierarchy_flag, :deposit_flag, :edi_source, :mult_ship_code,
:company_tax_no, :last_operator, :operator, :state, :county_zip, :extended_tax_code, :web_created,
:quote, :dispatches_made, :live_disp_exist, :num_dispatches, :include_in_mrp, :header_text,
- :header_notes, :commissions, :sales_order_lines
+ :header_notes, :commissions, :sales_order_lines, :ship_weight
end
end
end
diff --git a/lib/syspro/business_objects/parsers/sorqry_parser.rb b/lib/syspro/business_objects/parsers/sorqry_parser.rb
index 34082ae..cd5bcf6 100644
--- a/lib/syspro/business_objects/parsers/sorqry_parser.rb
+++ b/lib/syspro/business_objects/parsers/sorqry_parser.rb
@@ -7,6 +7,7 @@ module Syspro
attr_reader :doc
def initialize(doc)
+ @calculated_weight = 0
@doc = doc
end
@@ -124,6 +125,7 @@ module Syspro
# Inner Nested Structure Parsing
sor.commissions = parse_commissions(doc)
sor.sales_order_lines = parse_sales_order_lines(doc)
+ sor.ship_weight = @calculated_weight
sor
end
@@ -140,6 +142,7 @@ module Syspro
sales_order_lines = doc.first_element_child.xpath("SalesOrderLine")
sales_order_lines_obj = {}
+
sales_order_lines.children.each do |el|
next if el.name == "text"
@@ -183,6 +186,15 @@ module Syspro
merchandise_arr = el.children.map do |el_child|
next if el_child.name == "text"
+ if el_child.name == "MOrderQty"
+ @calculated_weight = @calculated_weight + el_child.text.split(' ')[0].split(',').join().to_f
+
+ {
+ name: el_child.name,
+ text: el_child.text
+ }
+ end
+
# NOTE: These first three in the following
# conditionals are "Merchandise" elements with
# thier own nested structure that need parsed
diff --git a/test/cassettes/test_client_block_execution.yml b/test/cassettes/test_client_block_execution.yml
index 603ca3d..436eb8b 100644
--- a/test/cassettes/test_client_block_execution.yml
+++ b/test/cassettes/test_client_block_execution.yml
@@ -8,7 +8,7 @@ http_interactions:
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -27,10 +27,10 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:51:34 GMT
+ - Wed, 09 Jan 2019 00:28:44 GMT
body:
encoding: UTF-8
string: 7.0.0.6
http_version:
- recorded_at: Thu, 17 May 2018 16:51:34 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:43 GMT
recorded_with: VCR 4.0.0
diff --git a/test/cassettes/test_get_syspro_version.yml b/test/cassettes/test_get_syspro_version.yml
index 603ca3d..436eb8b 100644
--- a/test/cassettes/test_get_syspro_version.yml
+++ b/test/cassettes/test_get_syspro_version.yml
@@ -8,7 +8,7 @@ http_interactions:
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -27,10 +27,10 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:51:34 GMT
+ - Wed, 09 Jan 2019 00:28:44 GMT
body:
encoding: UTF-8
string: 7.0.0.6
http_version:
- recorded_at: Thu, 17 May 2018 16:51:34 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:43 GMT
recorded_with: VCR 4.0.0
diff --git a/test/cassettes/test_logoff_error.yml b/test/cassettes/test_logoff_error.yml
index 33c7002..d284688 100644
--- a/test/cassettes/test_logoff_error.yml
+++ b/test/cassettes/test_logoff_error.yml
@@ -8,7 +8,7 @@ http_interactions:
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -27,10 +27,10 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:53:03 GMT
+ - Wed, 09 Jan 2019 00:28:31 GMT
body:
encoding: UTF-8
string: 'ERROR: Unable to read the SYSPRO base directory registry string BaseDir8'
http_version:
- recorded_at: Thu, 17 May 2018 16:53:03 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:30 GMT
recorded_with: VCR 4.0.0
diff --git a/test/cassettes/test_logon.yml b/test/cassettes/test_logon.yml
index 46da62f..a994d28 100644
--- a/test/cassettes/test_logon.yml
+++ b/test/cassettes/test_logon.yml
@@ -2,13 +2,13 @@
http_interactions:
- request:
method: get
- uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016
+ uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -27,10 +27,10 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:53:03 GMT
+ - Wed, 09 Jan 2019 00:28:38 GMT
body:
encoding: UTF-8
- string: 'CED6A1CD9634DD409665A876B0722D0900 '
+ string: '77094D60E26B934D8280505BAF8C262400 '
http_version:
- recorded_at: Thu, 17 May 2018 16:53:03 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:37 GMT
recorded_with: VCR 4.0.0
diff --git a/test/cassettes/test_logon_error.yml b/test/cassettes/test_logon_error.yml
index d8d61d9..9a301b2 100644
--- a/test/cassettes/test_logon_error.yml
+++ b/test/cassettes/test_logon_error.yml
@@ -8,7 +8,7 @@ http_interactions:
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -27,10 +27,10 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:52:54 GMT
+ - Wed, 09 Jan 2019 00:28:39 GMT
body:
encoding: UTF-8
string: 'ERROR: Invalid operator password'
http_version:
- recorded_at: Thu, 17 May 2018 16:52:54 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:39 GMT
recorded_with: VCR 4.0.0
diff --git a/test/cassettes/test_por_query.yml b/test/cassettes/test_por_query.yml
index 3aa10c6..2ead0b4 100644
--- a/test/cassettes/test_por_query.yml
+++ b/test/cassettes/test_por_query.yml
@@ -2,13 +2,13 @@
http_interactions:
- request:
method: get
- uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016
+ uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -27,21 +27,21 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:52:35 GMT
+ - Wed, 09 Jan 2019 00:28:34 GMT
body:
encoding: UTF-8
- string: 'C6897E2FC9768F4DA49CA2144341435700 '
+ string: 'E4B229FC9C2F7A4BA70D10AF87DBB35600 '
http_version:
- recorded_at: Thu, 17 May 2018 16:52:35 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:33 GMT
- request:
method: get
- uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=PORQRY&UserId=C6897E2FC9768F4DA49CA2144341435700%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22PORQRY.XSD%22%3E%0A%20%20%3CKey%3E%0A%20%20%20%20%3CPurchaseOrder%3E%2000001%3C/PurchaseOrder%3E%0A%20%20%3C/Key%3E%0A%20%20%3COption%3E%0A%20%20%20%20%3CIncludeStockedLines%3EY%3C/IncludeStockedLines%3E%0A%20%20%20%20%3CIncludeNonStockedLines%3EY%3C/IncludeNonStockedLines%3E%0A%20%20%20%20%3CIncludeFreightLines%3EY%3C/IncludeFreightLines%3E%0A%20%20%20%20%3CIncludeMiscellaneousLines%3EY%3C/IncludeMiscellaneousLines%3E%0A%20%20%20%20%3CIncludeCommentLines%3EY%3C/IncludeCommentLines%3E%0A%20%20%20%20%3CIncludeCompletedLines%3EY%3C/IncludeCompletedLines%3E%0A%20%20%20%20%3CIncludeGrns%3EY%3C/IncludeGrns%3E%0A%20%20%20%20%3CIncludeHistory%3EY%3C/IncludeHistory%3E%0A%20%20%20%20%3CIncludeLctDetails%3EY%3C/IncludeLctDetails%3E%0A%20%20%20%20%3CIncludeRequisitionDetails%3EY%3C/IncludeRequisitionDetails%3E%0A%20%20%20%20%3CIncludeRequisitionRouting%3EY%3C/IncludeRequisitionRouting%3E%0A%20%20%20%20%3CIncludeSalesOrders%3EY%3C/IncludeSalesOrders%3E%0A%20%20%20%20%3CIncludeCustomForms%3EY%3C/IncludeCustomForms%3E%20%0A%20%20%20%20%3CXslStylesheet/%3E%0A%20%20%3C/Option%3E%0A%20%20%3CFilter%3E%0A%20%20%20%20%3CLineNo%20FilterType=%22A%22%20FilterValue=%22%22/%3E%20%20%20%20%20%0A%20%20%3C/Filter%3E%0A%3C/Query%3E%0A%0A
+ uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=PORQRY&UserId=E4B229FC9C2F7A4BA70D10AF87DBB35600%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22PORQRY.XSD%22%3E%0A%20%20%3CKey%3E%0A%20%20%20%20%3CPurchaseOrder%3E%2000001%3C/PurchaseOrder%3E%0A%20%20%3C/Key%3E%0A%20%20%3COption%3E%0A%20%20%20%20%3CIncludeStockedLines%3EY%3C/IncludeStockedLines%3E%0A%20%20%20%20%3CIncludeNonStockedLines%3EY%3C/IncludeNonStockedLines%3E%0A%20%20%20%20%3CIncludeFreightLines%3EY%3C/IncludeFreightLines%3E%0A%20%20%20%20%3CIncludeMiscellaneousLines%3EY%3C/IncludeMiscellaneousLines%3E%0A%20%20%20%20%3CIncludeCommentLines%3EY%3C/IncludeCommentLines%3E%0A%20%20%20%20%3CIncludeCompletedLines%3EY%3C/IncludeCompletedLines%3E%0A%20%20%20%20%3CIncludeGrns%3EY%3C/IncludeGrns%3E%0A%20%20%20%20%3CIncludeHistory%3EY%3C/IncludeHistory%3E%0A%20%20%20%20%3CIncludeLctDetails%3EY%3C/IncludeLctDetails%3E%0A%20%20%20%20%3CIncludeRequisitionDetails%3EY%3C/IncludeRequisitionDetails%3E%0A%20%20%20%20%3CIncludeRequisitionRouting%3EY%3C/IncludeRequisitionRouting%3E%0A%20%20%20%20%3CIncludeSalesOrders%3EY%3C/IncludeSalesOrders%3E%0A%20%20%20%20%3CIncludeCustomForms%3EY%3C/IncludeCustomForms%3E%20%0A%20%20%20%20%3CXslStylesheet/%3E%0A%20%20%3C/Option%3E%0A%20%20%3CFilter%3E%0A%20%20%20%20%3CLineNo%20FilterType=%22A%22%20FilterValue=%22%22/%3E%20%20%20%20%20%0A%20%20%3C/Filter%3E%0A%3C/Query%3E%0A%0A
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -60,11 +60,11 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:52:40 GMT
+ - Wed, 09 Jan 2019 00:28:38 GMT
body:
encoding: UTF-8
string: "\n\n 00001\nUTE002\nUTEXAM
LOGISTICS LIMITED(ZERO)\n\n\n\n\n\n\n\n\n\n\n\n$\nY\nDOLLAR\nULL
OWNED @ PDI\n\n\n\n\n\n\n\n
@@ -146,5 +146,5 @@ http_interactions:
\ 0.00\n 0.00\n
\ 0.00\n0.00\n0.00\n\n\n\n\n\n "
http_version:
- recorded_at: Thu, 17 May 2018 16:52:40 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:37 GMT
recorded_with: VCR 4.0.0
diff --git a/test/cassettes/test_query_browse.yml b/test/cassettes/test_query_browse.yml
index 889f26c..3642ec3 100644
--- a/test/cassettes/test_query_browse.yml
+++ b/test/cassettes/test_query_browse.yml
@@ -2,13 +2,13 @@
http_interactions:
- request:
method: get
- uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016
+ uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -27,21 +27,21 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:52:05 GMT
+ - Wed, 09 Jan 2019 00:28:39 GMT
body:
encoding: UTF-8
- string: 'AA79E916A9C2814A887CB5F77952335400 '
+ string: '42F9885C71D1C94C8D76D156C187573D00 '
http_version:
- recorded_at: Thu, 17 May 2018 16:52:05 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:39 GMT
- request:
method: get
- uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Browse?UserId=AA79E916A9C2814A887CB5F77952335400%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CBrowse%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMBRW.XSD%22%3E%0A%20%20%3CBrowseName%3EInvMaster%3C/BrowseName%3E%0A%20%20%3CStartAtKey/%3E%0A%20%20%3CStartCondition%3E%3C/StartCondition%3E%0A%20%20%3CReturnRows%3E5%3C/ReturnRows%3E%0A%20%20%0A%20%20%3CBrowseDetails%3E%0A%20%20%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%20%20%3CTitle%3EStockCodes%3C/Title%3E%0A%20%20%20%20%0A%20%20%20%20%20%20%3CColumn%3E%0A%20%20%20%20%20%20%20%20%3CColumnName%3EStockCode%3C/ColumnName%3E%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%3C/Column%3E%0A%20%20%20%20%0A%20%20%3C/BrowseDetails%3E%0A%3C/Browse%3E%0A%0A
+ uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Browse?UserId=42F9885C71D1C94C8D76D156C187573D00%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CBrowse%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMBRW.XSD%22%3E%0A%20%20%3CBrowseName%3EInvMaster%3C/BrowseName%3E%0A%20%20%3CStartAtKey%3E%3C/StartAtKey%3E%0A%20%20%3CStartCondition%3E%3C/StartCondition%3E%0A%20%20%3CReturnRows%3E5%3C/ReturnRows%3E%0A%20%20%0A%3C/Browse%3E%0A%0A
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -54,19 +54,25 @@ http_interactions:
message: OK
headers:
Content-Length:
- - '944'
+ - '1899'
Content-Type:
- application/octet-stream
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:52:09 GMT
+ - Wed, 09 Jan 2019 00:28:41 GMT
body:
encoding: UTF-8
string: "\n\nStockCodes\n\n\n02\nAlphaNumeric\n\n
\n\n\n021\nAlphaNumeric\n\n
\n\n\n0214011IFF\nAlphaNumeric\n\n
\n\n\n022\nAlphaNumeric\n\n
\n\n\n023\nAlphaNumeric\n\n
\n\n02\n023\nTrue\nFalse\n\n\n\nStockCode\nStock code\n\n\n\n "
+ Language2='EN' CssStyle='' DecFormat='1' DateFormat='01' Role='01' Version='7.0.038'
+ OperatorPrimaryRole=' '>\n
Stock Codes\n\n\n02\nAlphaNumeric\n\n\nSTR\nAlphaNumeric\n\n\nSPEARMINT
+ TERPENES\nAlphaNumeric\n\n
\n\n\n021\nAlphaNumeric\n\n\nSTR\nAlphaNumeric\n\n\nSPEARMINT
+ TERPENES NATIVE\nAlphaNumeric\n\n
\n\n\n0214011IFF\nAlphaNumeric\n\n\n00196998\nAlphaNumeric\n\n\nSPEARMINT
+ TERPENES\nAlphaNumeric\n\n
\n\n\n022\nAlphaNumeric\n\n\nSTR\nAlphaNumeric\n\n\nSPEARMINT
+ TERPENES SCOTCH\nAlphaNumeric\n\n
\n\n\n023\nAlphaNumeric\n\n\nSTR\nAlphaNumeric\n\n\nSPEARMINT
+ TERPENES INDIAN\nAlphaNumeric\n\n
\n\n02\n023\nTrue\nFalse\n\n\n\n\n\nStockCode\nStock
+ code\n\n\n\n "
http_version:
- recorded_at: Thu, 17 May 2018 16:52:09 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:40 GMT
recorded_with: VCR 4.0.0
diff --git a/test/cassettes/test_query_fetch.yml b/test/cassettes/test_query_fetch.yml
index ce57c67..cff2aa6 100644
--- a/test/cassettes/test_query_fetch.yml
+++ b/test/cassettes/test_query_fetch.yml
@@ -2,13 +2,13 @@
http_interactions:
- request:
method: get
- uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016
+ uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -27,21 +27,21 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:51:47 GMT
+ - Wed, 09 Jan 2019 00:28:43 GMT
body:
encoding: UTF-8
- string: '5302D42E29F95946813203EF51DF25CE00 '
+ string: '298FDAC63B744A44B5512B1057C0FB2A00 '
http_version:
- recorded_at: Thu, 17 May 2018 16:51:47 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:42 GMT
- request:
method: get
- uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Fetch?UserId=5302D42E29F95946813203EF51DF25CE00%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CFetch%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMFCH.XSD%22%3E%0A%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%3CKey%3E02%3C/Key%3E%0A%20%20%0A%20%20%3CFullKeyProvided%3EY%3C/FullKeyProvided%3E%0A%20%20%3CDefaultType%3E%3C/DefaultType%3E%0A%20%20%3CEspressoFetch%3EN%3C/EspressoFetch%3E%0A%3C/Fetch%3E%0A%0A
+ uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Fetch?UserId=298FDAC63B744A44B5512B1057C0FB2A00%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CFetch%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMFCH.XSD%22%3E%0A%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%3CKey%3E02%3C/Key%3E%0A%20%20%0A%20%20%3CFullKeyProvided%3EY%3C/FullKeyProvided%3E%0A%20%20%3CDefaultType%3E%3C/DefaultType%3E%0A%20%20%3CEspressoFetch%3EN%3C/EspressoFetch%3E%0A%3C/Fetch%3E%0A%0A
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -60,7 +60,7 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:51:56 GMT
+ - Wed, 09 Jan 2019 00:28:44 GMT
body:
encoding: UTF-8
string: "\n\n\n\n\n\n
\ 0\n 0\n\n\n\n\n\n "
http_version:
- recorded_at: Thu, 17 May 2018 16:51:56 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:43 GMT
recorded_with: VCR 4.0.0
diff --git a/test/cassettes/test_query_query.yml b/test/cassettes/test_query_query.yml
index 7f891c1..c17f597 100644
--- a/test/cassettes/test_query_query.yml
+++ b/test/cassettes/test_query_query.yml
@@ -2,13 +2,13 @@
http_interactions:
- request:
method: get
- uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016
+ uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -27,21 +27,21 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:52:18 GMT
+ - Wed, 09 Jan 2019 00:28:41 GMT
body:
encoding: UTF-8
- string: '4D735EA6DD5ADB46B6E0058EA86DBC4D00 '
+ string: '5164D8F79E0BC54E94AA768802A7936100 '
http_version:
- recorded_at: Thu, 17 May 2018 16:52:18 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:40 GMT
- request:
method: get
- uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=COMFND&UserId=4D735EA6DD5ADB46B6E0058EA86DBC4D00%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMFND.XSD%22%3E%0A%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%3CReturnRows%3E5%3C/ReturnRows%3E%0A%20%20%3CColumns%3E%0A%20%20%20%20%0A%20%20%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%20%20%0A%20%20%3C/Columns%3E%0A%20%20%0A%20%20%20%20%3CWhere%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%3CExpression%3E%0A%20%20%20%20%20%20%20%20%20%20%3COpenBracket%3E(%3C/OpenBracket%3E%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CAndOr%3EAnd%3C/AndOr%3E%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%20%20%20%20%20%20%20%20%3CCondition%3EEQ%3C/Condition%3E%0A%20%20%20%20%20%20%20%20%20%20%3CValue%3E02%3C/Value%3E%0A%20%20%20%20%20%20%20%20%20%20%3CCloseBracket%3E)%3C/CloseBracket%3E%0A%20%20%20%20%20%20%20%20%3C/Expression%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%3C/Where%3E%0A%20%20%0A%20%20%3COrderBy%3E%0A%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%3C/OrderBy%3E%0A%3C/Query%3E%0A
+ uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=COMFND&UserId=5164D8F79E0BC54E94AA768802A7936100%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMFND.XSD%22%3E%0A%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%3CReturnRows%3E5%3C/ReturnRows%3E%0A%20%20%3CColumns%3E%0A%20%20%20%20%0A%20%20%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%20%20%0A%20%20%3C/Columns%3E%0A%20%20%0A%20%20%20%20%3CWhere%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%3CExpression%3E%0A%20%20%20%20%20%20%20%20%20%20%3COpenBracket%3E(%3C/OpenBracket%3E%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CAndOr%3EAnd%3C/AndOr%3E%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%20%20%20%20%20%20%20%20%3CCondition%3EEQ%3C/Condition%3E%0A%20%20%20%20%20%20%20%20%20%20%3CValue%3E02%3C/Value%3E%0A%20%20%20%20%20%20%20%20%20%20%3CCloseBracket%3E)%3C/CloseBracket%3E%0A%20%20%20%20%20%20%20%20%3C/Expression%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%3C/Where%3E%0A%20%20%0A%20%20%3COrderBy%3E%0A%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%3C/OrderBy%3E%0A%3C/Query%3E%0A
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -60,13 +60,13 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:52:26 GMT
+ - Wed, 09 Jan 2019 00:28:43 GMT
body:
encoding: UTF-8
string: "\n\n\nInvMaster\n\nStockCode\n\n\nStockCode\n\n\n\n02\n
\n
\ 1\n\n "
http_version:
- recorded_at: Thu, 17 May 2018 16:52:26 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:42 GMT
recorded_with: VCR 4.0.0
diff --git a/test/cassettes/test_sor_query.yml b/test/cassettes/test_sor_query.yml
index 5858465..a260e29 100644
--- a/test/cassettes/test_sor_query.yml
+++ b/test/cassettes/test_sor_query.yml
@@ -2,13 +2,13 @@
http_interactions:
- request:
method: get
- uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016
+ uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -27,21 +27,21 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:52:48 GMT
+ - Wed, 09 Jan 2019 00:28:32 GMT
body:
encoding: UTF-8
- string: '6FDE76F80A298C409BEA62CB2CB0F58B00 '
+ string: 'F3FD8466E601D44CB900D3B5B267692200 '
http_version:
- recorded_at: Thu, 17 May 2018 16:52:48 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:31 GMT
- request:
method: get
- uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=SORQRY&UserId=6FDE76F80A298C409BEA62CB2CB0F58B00%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22SORQRY.XSD%22%3E%0A%20%20%3CKey%3E%0A%20%20%20%20%3CSalesOrder%3E16R069%3C/SalesOrder%3E%0A%20%20%20%20%0A%20%20%3C/Key%3E%0A%20%20%3COption%3E%0A%20%20%20%20%3CIncludeStockedLines%3EN%3C/IncludeStockedLines%3E%0A%20%20%20%20%20%20%3CIncludeNonStockedLines%3EN%3C/IncludeNonStockedLines%3E%0A%20%20%20%20%20%20%3CIncludeFreightLines%3EN%3C/IncludeFreightLines%3E%0A%20%20%20%20%20%20%3CIncludeMiscLines%3EN%3C/IncludeMiscLines%3E%0A%20%20%20%20%20%20%3CIncludeCommentLines%3EN%3C/IncludeCommentLines%3E%0A%20%20%20%20%20%20%3CIncludeCompletedLines%3EN%3C/IncludeCompletedLines%3E%0A%20%20%20%20%20%20%3CIncludeSerials%3EN%3C/IncludeSerials%3E%0A%20%20%20%20%20%20%3CIncludeLots%3EN%3C/IncludeLots%3E%0A%20%20%20%20%20%20%3CIncludeBins%3EN%3C/IncludeBins%3E%0A%20%20%20%20%20%20%3CIncludeAttachedItems%3EN%3C/IncludeAttachedItems%3E%0A%20%20%20%20%20%20%3CIncludeCustomForms%3EN%3C/IncludeCustomForms%3E%0A%20%20%20%20%20%20%3CIncludeDetailLineCustomForms%3EN%3C/IncludeDetailLineCustomForms%3E%0A%20%20%20%20%20%20%3CIncludeValues%3EN%3C/IncludeValues%3E%0A%20%20%20%20%20%20%3CReturnLineShipDate%3EN%3C/ReturnLineShipDate%3E%0A%20%20%20%20%20%20%3CXslStylesheet/%3E%0A%20%20%3C/Option%3E%0A%3C/Query%3E%0A%0A
+ uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=SORQRY&UserId=F3FD8466E601D44CB900D3B5B267692200%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22SORQRY.XSD%22%3E%0A%20%20%3CKey%3E%0A%20%20%20%20%3CSalesOrder%3E16R069%3C/SalesOrder%3E%0A%20%20%20%20%0A%20%20%3C/Key%3E%0A%20%20%3COption%3E%0A%20%20%20%20%3CIncludeStockedLines%3EN%3C/IncludeStockedLines%3E%0A%20%20%20%20%20%20%3CIncludeNonStockedLines%3EN%3C/IncludeNonStockedLines%3E%0A%20%20%20%20%20%20%3CIncludeFreightLines%3EN%3C/IncludeFreightLines%3E%0A%20%20%20%20%20%20%3CIncludeMiscLines%3EN%3C/IncludeMiscLines%3E%0A%20%20%20%20%20%20%3CIncludeCommentLines%3EN%3C/IncludeCommentLines%3E%0A%20%20%20%20%20%20%3CIncludeCompletedLines%3EN%3C/IncludeCompletedLines%3E%0A%20%20%20%20%20%20%3CIncludeSerials%3EN%3C/IncludeSerials%3E%0A%20%20%20%20%20%20%3CIncludeLots%3EN%3C/IncludeLots%3E%0A%20%20%20%20%20%20%3CIncludeBins%3EN%3C/IncludeBins%3E%0A%20%20%20%20%20%20%3CIncludeAttachedItems%3EN%3C/IncludeAttachedItems%3E%0A%20%20%20%20%20%20%3CIncludeCustomForms%3EN%3C/IncludeCustomForms%3E%0A%20%20%20%20%20%20%3CIncludeDetailLineCustomForms%3EN%3C/IncludeDetailLineCustomForms%3E%0A%20%20%20%20%20%20%3CIncludeValues%3EN%3C/IncludeValues%3E%0A%20%20%20%20%20%20%3CReturnLineShipDate%3EN%3C/ReturnLineShipDate%3E%0A%20%20%20%20%20%20%3CXslStylesheet/%3E%0A%20%20%3C/Option%3E%0A%3C/Query%3E%0A%0A
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -60,7 +60,7 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:52:53 GMT
+ - Wed, 09 Jan 2019 00:28:34 GMT
body:
encoding: UTF-8
string: "\n\n 0.000000\nN\n\nN\n
\ 1.000000\n1.000000\nM\n\nI\n\n\n\n\n\n\n\n000\n00\n0\n\n\n\n\n\n\n\nMATTB\n\n\n\n\n\n
\n\n\n0\nY\n\n\n\n\n\n "
http_version:
- recorded_at: Thu, 17 May 2018 16:52:53 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:33 GMT
recorded_with: VCR 4.0.0
diff --git a/test/cassettes/test_successful_logoff.yml b/test/cassettes/test_successful_logoff.yml
index 90d5f8e..03d28ab 100644
--- a/test/cassettes/test_successful_logoff.yml
+++ b/test/cassettes/test_successful_logoff.yml
@@ -2,13 +2,13 @@
http_interactions:
- request:
method: get
- uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016
+ uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -27,21 +27,21 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:53:11 GMT
+ - Wed, 09 Jan 2019 00:28:31 GMT
body:
encoding: UTF-8
- string: 'A23FDE0669C9E64D9D0C165DDE9324AD00 '
+ string: '4A540294F5C15A4F8084B3E0905E44F200 '
http_version:
- recorded_at: Thu, 17 May 2018 16:53:11 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:30 GMT
- request:
method: get
- uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logoff?UserId=A23FDE0669C9E64D9D0C165DDE9324AD00%20%20
+ uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logoff?UserId=4A540294F5C15A4F8084B3E0905E44F200%20%20
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Syspro/7 RubyBindings/1.0.0.alpha.1
+ - Syspro/7 RubyBindings/1.0.0.alpha.2
Content-Type:
- application/x-www-form-urlencoded
Accept-Encoding:
@@ -60,10 +60,10 @@ http_interactions:
Server:
- Microsoft-HTTPAPI/2.0
Date:
- - Thu, 17 May 2018 16:53:11 GMT
+ - Wed, 09 Jan 2019 00:28:32 GMT
body:
encoding: UTF-8
string: '0'
http_version:
- recorded_at: Thu, 17 May 2018 16:53:11 GMT
+ recorded_at: Wed, 09 Jan 2019 00:28:31 GMT
recorded_with: VCR 4.0.0
diff --git a/test/logoff_test.rb b/test/logoff_test.rb
index 37d7f6f..fc60da3 100644
--- a/test/logoff_test.rb
+++ b/test/logoff_test.rb
@@ -8,7 +8,7 @@ class LogoffTest < Minitest::Test
after { VCR.eject_cassette }
let(:username) { 'wland' }
- let(:password) { 'piperita2016' }
+ let(:password) { 'Piperita2018' }
let(:company) { 'L' }
let(:company_password) { '' }
diff --git a/test/logon_test.rb b/test/logon_test.rb
index 177f750..1f7c097 100644
--- a/test/logon_test.rb
+++ b/test/logon_test.rb
@@ -8,7 +8,7 @@ class LogonTest < Minitest::Test
after { VCR.eject_cassette }
let(:username) { 'wland' }
- let(:password) { 'piperita2016' }
+ let(:password) { 'Piperita2018' }
let(:company) { 'L' }
let(:company_password) { '' }
diff --git a/test/por_test.rb b/test/por_test.rb
index 96fd8cd..2cea6e5 100644
--- a/test/por_test.rb
+++ b/test/por_test.rb
@@ -5,8 +5,8 @@ class PorTest < Minitest::Test
before { VCR.insert_cassette name }
after { VCR.eject_cassette }
- let(:username) { 'wland' }
- let(:password) { 'piperita2016' }
+ let(:username) { 'wland' }
+ let(:password) { 'Piperita2018' }
let(:company) { 'L' }
let(:company_password) { '' }
let(:user_id) do
diff --git a/test/query_test.rb b/test/query_test.rb
index 47f9ea8..12e6911 100644
--- a/test/query_test.rb
+++ b/test/query_test.rb
@@ -8,7 +8,7 @@ class QueryTest < Minitest::Test
after { VCR.eject_cassette }
let(:username) { 'wland' }
- let(:password) { 'piperita2016' }
+ let(:password) { 'Piperita2018' }
let(:company) { 'L' }
let(:company_password) { '' }
let(:user_id) do
diff --git a/test/sor_test.rb b/test/sor_test.rb
index 4ffea8d..b540c08 100644
--- a/test/sor_test.rb
+++ b/test/sor_test.rb
@@ -8,7 +8,7 @@ class SorTest < Minitest::Test
after { VCR.eject_cassette }
let(:username) { 'wland' }
- let(:password) { 'piperita2016' }
+ let(:password) { 'Piperita2018' }
let(:company) { 'L' }
let(:company_password) { '' }
let(:user_id) do
@@ -39,4 +39,3 @@ class SorTest < Minitest::Test
assert_kind_of Syspro::BusinessObjects::Models::SorDetail, sor_result
end
end
-
--
libgit2 0.21.4