浏览代码

【集团EDI-新思&歌尔】【新思-867(POS)】

DINGYL 1 月之前
父节点
当前提交
1742234754
共有 1 个文件被更改,包括 8 次插入7 次删除
  1. 8 7
      src/main/java/com/uas/eis/core/X12Converter.java

+ 8 - 7
src/main/java/com/uas/eis/core/X12Converter.java

@@ -351,10 +351,10 @@ public class X12Converter {
             txCount++;
             /*非必填 Actual end customer country which is sold by disti , please provide the TERRITORY_SHORT_NAME and TERRITORY_CODE as following mapping sheet.*/
             writer.writeStartSegment("N4")
-                    .writeElement(pd.getPd_endCustomerCountryName())//? Ex:China
+                    .writeElement(pd.getPd_endCustomerCountryName())//Ex:China
                     .writeElement("")
                     .writeElement("")
-                    .writeElement(pd.getPd_endCustomerCountry())//? Ex:CN
+                    .writeElement(pd.getPd_endCustomerCountry())//Ex:CN
                     .writeEndSegment();
             txCount++;
 
@@ -421,12 +421,13 @@ public class X12Converter {
                     .writeEndSegment();
             txCount++;
 
+            writer.writeStartSegment("CUR")
+                    .writeElement("BY")
+                    .writeElement(pos.getPs_currency())
+                    .writeEndSegment();
+            txCount++;
+
         }
-        writer.writeStartSegment("CUR")
-                .writeElement("BY")
-                .writeElement(pos.getPs_currency())
-                .writeEndSegment();
-        txCount++;
         //结束
         // 订单小计 (CTT)
         writer.writeStartSegment("CTT")