definitions/segments/imd.rb in eancom-1.6.3 vs definitions/segments/imd.rb in eancom-2.0.0
- old
+ new
@@ -23,18 +23,10 @@
data = Eancom::Edifact::Data.new(
type: String,
length: 1..3,
dictionary: {
- 'A' => {
- description: 'Free-form long description',
- identifier: 'free_form_long_description'
- },
- 'B' => {
- description: 'Code and text',
- identifier: 'code_and_text'
- },
'C' => {
description: 'Code (from industry code list)',
identifier: 'code'
},
'D' => {
@@ -51,10 +43,14 @@
},
'S' => {
description: 'Structured (from industry code list)',
identifier: 'structured'
},
+ 'B' => {
+ description: 'Code and text',
+ identifier: 'code_and_text'
+ }
},
description: "Description format code",
required: true
)
description_format_code.add(:description_format_code, data)
@@ -65,11 +61,11 @@
#==============================================================================
item_characteristic = Eancom::Edifact::Composite.new()
item_characteristic_code = Eancom::Edifact::Data.new(
type: String,
- length: 1..3,
+ length: 0..3,
dictionary: {
'2' => {
description: 'General product form',
identifier: 'general_product_form'
},
@@ -123,10 +119,14 @@
},
'STE' => {
description: 'Style',
identifier: 'style'
},
+ 'MNF' => {
+ description: 'Manufacturer',
+ identifier: 'manufacturer'
+ },
'XX1' => {
description: 'Collar Type',
identifier: 'collar_type'
},
'XX3' => {
@@ -142,13 +142,9 @@
identifier: 'campaign_name'
},
'XX6' => {
description: 'Season name',
identifier: 'season_name'
- },
- 'XX7' => {
- description: 'Season code',
- identifier: 'season_code'
},
},
description: "Item characteristic code",
required: true
)