definitions/segments/imd.rb in eancom-1.5.1 vs definitions/segments/imd.rb in eancom-1.5.2
- old
+ new
@@ -23,10 +23,18 @@
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' => {
@@ -43,14 +51,10 @@
},
'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)
@@ -138,9 +142,13 @@
identifier: 'campaign_name'
},
'XX6' => {
description: 'Season name',
identifier: 'season_name'
+ },
+ 'XX7' => {
+ description: 'Season code',
+ identifier: 'season_code'
},
},
description: "Item characteristic code",
required: true
)