edifact-mapping icon indicating copy to clipboard operation
edifact-mapping copied to clipboard

D99B DTM segment is incomplete

Open mahsa92 opened this issue 3 years ago • 1 comments

@sabas Thanks for the work you put into this. According to https://service.unece.org/trade/untdid/d99b/trcd/trcdc507.htm, DTM segment is incomplete.

https://github.com/php-edifact/edifact-mapping/blob/6ee33bb3326fa32ec5ebede94def4d4a83d728e8/src/Mapping/D99B/segments.xml#L526

Proposed change:

   <segment id="DTM" name="date/time/period" desc="To specify date, and/or time, or period.">     
        <composite_data_element id="C507" required="true" name="datetimeperiod" desc="Date and/or time, or period relevant to the specified date/time/period type.">
            <data_element id="2005" required="true" name="datetimeperiodQualifier" desc="Code giving specific meaning to a date, time or period." type="an" maxlength="3"/>
            <data_element id="2380" name="datetimeperiod" desc="The value of a date, a date and time, a time or of a period in a specified representation." type="an" maxlength="35"/>
            <data_element id="2379" name="datetimeperiodFormatQualifier" desc="Specification of the representation of a date, a date and time or of a period." type="an" maxlength="3"/>
          </composite_data_element>
     </segment>

mahsa92 avatar Feb 07 '22 13:02 mahsa92

Thanks, I've merged it although it should be investigated why the parser failed to extract those lines :-)

sabas avatar Feb 07 '22 16:02 sabas

@mahsa92 @davidvandertuijn @denys-chernogorov Hello, I just wanted to notify you I found a fix for the xml and I regenerated most of the editions!

sabas avatar Feb 20 '23 22:02 sabas