-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
208 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
id description | ||
id name | ||
AAA Request Validation | ||
ACD Account Description | ||
ACK Line Item Acknowledgment | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
module Eddy | ||
module TransactionSets | ||
# ### Transaction Set Summary: | ||
# | ||
# - Id: 850 | ||
# - Name: Purchase Order | ||
# - Functional Group: PO | ||
class TS850 < Eddy::TransactionSet | ||
|
||
ID = "850".freeze | ||
NAME = "Purchase Order".freeze | ||
FUNCTIONAL_GROUP = "PO".freeze | ||
|
||
# @param store [Eddy::Data::Store] | ||
# @return [void] | ||
def initialize(store) | ||
@beg = Eddy::Segments::BEG.new(store) | ||
@td5 = Eddy::Segments::TD5.new(store) | ||
@n1 = Eddy::Segments::N1.new(store) | ||
@n3 = Eddy::Segments::N3.new(store) | ||
@n4 = Eddy::Segments::N4.new(store) | ||
@po1 = Eddy::Segments::PO1.new(store) # FIXME: This is a loop with a max repeat of 100_000 | ||
@ctt = Eddy::Segments::CTT.new(store) | ||
super( | ||
store, | ||
@beg, | ||
@td5, | ||
@n1, | ||
@n3, | ||
@n4, | ||
@po1, | ||
@ctt, | ||
) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
require "test_helper" | ||
|
||
module UtilTest | ||
class EDIDataTest < Minitest::Test | ||
|
||
def test_raw_element_data | ||
data = Eddy::Util.raw_element_data() | ||
skip() | ||
end | ||
|
||
def test_element_ids | ||
data = Eddy::Util.element_ids() | ||
skip() | ||
end | ||
|
||
def test_segment_ids | ||
data = Eddy::Util.segment_ids() | ||
skip() | ||
end | ||
|
||
def test_element_name_by_id | ||
name = Eddy::Util.element_name_by_id("93") | ||
assert_equal("Name", name) | ||
end | ||
|
||
def test_element_name_by_invalid_id | ||
skip() | ||
end | ||
|
||
def test_segment_name_by_id | ||
name = Eddy::Util.segment_name_by_id("N2") | ||
assert_equal("Additional Name Information", name) | ||
end | ||
|
||
def test_segment_name_by_invalid_id | ||
skip() | ||
end | ||
|
||
def test_list_element_classes | ||
data = Eddy::Util.list_element_classes() | ||
skip() | ||
end | ||
|
||
def test_list_segment_classes | ||
data = Eddy::Util.list_segment_classes() | ||
skip() | ||
end | ||
|
||
def test_list_segment_definitions | ||
data = Eddy::Util.list_segment_definitions() | ||
skip() | ||
end | ||
|
||
def test_list_built_elements | ||
data = Eddy::Util.list_built_elements() | ||
skip() | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,9 +31,5 @@ def test_timestamp | |
skip() | ||
end | ||
|
||
def test_find_element_by_id | ||
skip("Write `find_element_by_id` method") | ||
end | ||
|
||
end | ||
end |
Oops, something went wrong.