Browse Source

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

DINGYL 1 month ago
parent
commit
1742234754
1 changed files with 8 additions and 7 deletions
  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")