definitions/segments/dtm.rb in eancom-1.6.3 vs definitions/segments/dtm.rb in eancom-2.0.0

- old
+ new

@@ -19,21 +19,33 @@ '1' => { description: 'Service completion date/time, actual', identifier: 'service_completion_date_time_actual' }, '2' => { - description: 'Delivery date/time, reqested', + description: 'Delivery date/time, requested', identifier: 'delivery_date_time' }, + '3' => { + description: 'Invoice date/time, requested', + identifier: 'invoice_date_time' + }, '7' => { description: 'Effectiv date/time', identifier: 'effectiv_date_time' }, '11' => { description: 'Despatch date and/or time', identifier: 'despatch_date_and_or_time' }, + '12' => { + description: 'Terms discount due date/time', + identifier: 'terms_discount_due_date_time' + }, + '13' => { + description: 'Terms net due date', + identifier: 'terms_net_due_date' + }, '17' => { description: 'Delivery date/time, estimated', identifier: 'delivery_date_time_estimated' }, '35' => { @@ -66,22 +78,50 @@ }, '64' => { description: 'Delivery date/time, earliest', identifier: 'delivery_date_time_earliest' }, + '100' => { + description: 'Product ageing period before delivery', + identifier: 'product_ageing_period_before_delivery' + }, + '110' => { + description: 'ship date/time', + identifier: 'ship_date_time' + }, + '132' => { + description: 'Arrival date/time, estimated', + identifier: 'arrival_date_time_estimated' + }, + '133' => { + description: 'Departure date/time, estimated', + identifier: 'departure_date_time_estimated' + }, + '134' => { + description: 'Rate of exchange date/time', + identifier: 'rate_of_exchange_date_time' + }, '137' => { description: 'Document/message date/time', identifier: 'document_message_date_time' }, + '140' => { + description: 'Payment due date', + identifier: 'payment_due_date' + }, '157' => { description: 'Validity start date', identifier: 'valitity_start_date' }, '171' => { description: 'Reference date/time', identifier: 'reference_date_time' }, + '186' => { + description: 'Departure date/time, actual', + identifier: 'departure_date_time_actual' + }, '194' => { description: 'Start date/time', identifier: 'start_date_time' }, '200' => { @@ -90,42 +130,54 @@ }, '206' => { description: 'End date/time', identifier: 'end_date_time' }, + '209' => { + description: 'Value date', + identifier: 'value_date' + }, + '235' => { + description: 'Collection date/time', + identifier: 'collection_date_time' + }, '263' => { description: 'Invoicing period', identifier: 'invoicing_period' }, + '267' => { + description: 'Rate/price date/time', + identifier: 'rate_price_date_time' + }, + '273' => { + description: 'Validity period', + identifier: 'validity_period' + }, '325' => { description: 'Tax period', identifier: 'tax_period' }, + '326' => { + description: 'Charge period', + identifier: 'charge_period' + }, '356' => { description: 'Sales date, and or time, and or period', identifier: 'sales_date_and_or_time_and_or_period' }, - '418' => { - description: 'Minimum shelf life remaining at time of receipt', - identifier: 'minimum_shelf_life_remaining_at_time_of_receipt' + '366' => { + description: 'Inventory report date', + identifier: 'inventory_report_date' }, - '423' => { - description: 'First date of ordering', - identifier: 'first_date_of_ordering' - }, '454' => { description: 'Accounting value date', identifier: 'accounting_value_date' }, '44E' => { description: 'Connection date/time', identifier: 'connection_date_time' }, - '765' => { - description: 'Seasonal availabilty calendar year', - identifier: 'seasonal_availabilty_calendar_year' - } } data = Eancom::Edifact::Data.new( type: String, length: 1..3, @@ -157,22 +209,25 @@ '204' => { description: 'Date and Time', value: 'CCYYMMDDHHMMSS', identifier: 'date_time_second' }, - '602' => { - description: 'Calendar year including century: C = Century; Y = Year', - value: 'CCYY', - identifier: 'century_year' - }, '718' => { description: 'Period', value: 'CCYYMMDD-CCZZMMDD', identifier: 'period' }, - '801' => { - description: 'Year', - identifier: 'year' + '802' => { + description: 'Month', + identifier: 'month' + }, + '803' => { + description: 'Week', + identifier: 'week' + }, + '804' => { + description: 'Day', + identifier: 'day' } } data = Eancom::Edifact::Data.new( type: String,