definitions/segments/unt.rb in eancom-1.6.3 vs definitions/segments/unt.rb in eancom-2.0.0
- old
+ new
@@ -6,11 +6,11 @@
# Tag #
#==============================================================================
tag = Eancom::Edifact::Composite.new()
data = Eancom::Edifact::Data.new(
type: String,
- length: 3,
+ length: 1..3,
dictionary: nil,
description: "Message Header",
required: true
)
tag.add(:tag, data)
@@ -36,10 +36,10 @@
message_reference_number = Eancom::Edifact::Composite.new()
data = Eancom::Edifact::Data.new(
type: String,
length: 1..14,
dictionary: nil,
- description: "Number of segments in the message",
+ description: "Message reference number",
required: true
)
message_reference_number.add(:message_reference_number, data)
structure << message_reference_number