definitions/segments/pri.rb in eancom-1.6.3 vs definitions/segments/pri.rb in eancom-2.0.0
- old
+ new
@@ -25,11 +25,11 @@
type: String,
length: 1..3,
dictionary: {
'AAA' => {
description: 'Calculation net',
- identifier: 'calculation_net',
+ identifier: 'calculation_net'
},
'AAB' => {
description: 'Calculation gross',
identifier: 'calculation_gross',
},
@@ -83,10 +83,14 @@
data = Eancom::Edifact::Data.new(
type: String,
length: 0..3,
dictionary: {
+ 'AE' => {
+ description: 'Range dependent price',
+ identifier: 'range_dependent_price'
+ },
'CA' => {
description: 'Catalogue',
identifier: 'cataloque',
},
'CT' => {
@@ -117,34 +121,42 @@
},
'EUP' => {
description: 'Expected unit price',
identifier: 'expected_unit_price'
},
- 'LIU' => {
- description: 'List price',
- identifier: 'list_price',
- },
'LBL' => {
description: 'Labelling price',
identifier: 'labelling_price'
},
+ 'PPR' => {
+ description: 'Provisional price',
+ identifier: 'provisional_price'
+ },
+ 'PRP' => {
+ description: 'Promotional price',
+ identifier: 'promotional_price'
+ },
'MRP' => {
description: 'Market retail price',
identifier: 'market_retail_price',
},
- 'NTP' => {
- description: 'Net unit price',
- identifier: 'net_unit_price',
+ 'LIU' => {
+ description: 'List price',
+ identifier: 'list_price',
},
- 'RTP' => {
- description: 'Retail price',
- identifier: 'retail_price',
- },
'SRP' => {
description: 'Suggested retail price',
identifier: 'suggested_retail_price',
},
+ 'RTP' => {
+ description: 'Retail price',
+ identifier: 'retail_price',
+ },
+ 'NTP' => {
+ description: 'Net unit price',
+ identifier: 'net_unit_price',
+ }
},
description: 'Price specification code',
required: false
)
price_information.add(:price_specification_code, data)
@@ -159,10 +171,10 @@
price_information.add(:unit_price_basis_value, data)
data = Eancom::Edifact::Data.new(
type: String,
length: 0..3,
- dictionary: {
+ dictionary: {
'KGM' => {
description: 'Kilogram',
identifier: 'kilogram',
},
'PCE' => {