|
|
@@ -3,6 +3,7 @@ package com.uas.eis.core;
|
|
|
import com.uas.eis.config.SynaConfig;
|
|
|
import com.uas.eis.dao.BaseDao;
|
|
|
import com.uas.eis.entity.*;
|
|
|
+import com.uas.eis.utils.StringUtil;
|
|
|
import io.xlate.edi.schema.EDISchemaException;
|
|
|
import io.xlate.edi.schema.Schema;
|
|
|
import io.xlate.edi.schema.SchemaFactory;
|
|
|
@@ -123,10 +124,14 @@ public class X12Converter {
|
|
|
.writeElement("PR")
|
|
|
.writeElement(pd.getPd_quote()).writeEndSegment();
|
|
|
txCount++;
|
|
|
+ String shippingInstruction="";
|
|
|
+ if(StringUtil.hasText(pd.getPd_shippinginstruction())){
|
|
|
+ shippingInstruction=pd.getPd_shippinginstruction();
|
|
|
+ }
|
|
|
writer.writeStartSegment("FOB")
|
|
|
.writeElement("DF")
|
|
|
.writeElement("ZZ")
|
|
|
- .writeElement(po.getPu_article()).writeEndSegment();// Shipping Instruction
|
|
|
+ .writeElement(shippingInstruction).writeEndSegment();// Shipping Instruction
|
|
|
txCount++;
|
|
|
writer.writeStartSegment("SCH")
|
|
|
.writeElement(String.valueOf(pd.getPd_qty()))
|