I am working with the EdiFabric.Definitions.X12_004010_846 document and attempting to create EDI txt files.
The vendor is providing S_LDT_2 data, but the data structure is not generating the correct format. Here is the result in EDI-TXT:
Here is the XML (inside the G_QTY node):
My C# code to write this element is:
public S_LDT_2 AddLeadtimeToQtyGroup(G_QTY qty, string leadCode, Int32 inventoryAmt, string timeCode = "DA")
S_LDT_2 leadtime = new S_LDT_2();
leadtime.D_345_1 = leadCode.Fit(2, 2);
leadtime.D_380_2 = inventoryAmt.ToString();
leadtime.D_344_3 = timeCode.Fit(2, 2);
(NOTE: the Fit() is just a String extension to force the contents between min and max size).
As far as I can tell, my code is correct and the XML is as expected, but the EDI is broken.