﻿<?xml version="1.0" encoding="utf-8"?>
<!-- ฟอร์ม ASEAN-KOREA - New -->
<!-- Description: ปรับปรุงตามเงื่อนไขใหม่ เริ่มใช้ 1 กรกฎาคม 25557 -->
<!-- Updated: 15/12/2015 - ปรับปรุงให้รองรับการออกหนังสือรับรอง แบบลงลายมือชื่อและตราประทับอิเล็กทรอนิกส์ (Electronic Signature and Seal) -->
<!-- Updated: 2017/11/09
       Parent : Form44_4DetailProduct
              -model_name : ระบุรุ่นของสินค้า (Model) กรณีที่ใช้พิกัดศุลกากรภายใต้พิกัดที่ 84, 85 และ 87
       Parent : Form44_4DetailCost
              -rovers_owner_company : ชื่อบริษัทผู้ยื่นขอรับรองคุณสมบัติของสินค้าทางด้านถิ่นกำเนิด
              -rovers_allow_doc_no : เลขที่หนังสือยินยอมให้ใช้ผลการตรวจสอบคุณสมบัติทางด้านถิ่นกำเนิดสินค้า
              -rovers_allow_doc_date : วันที่ออกหนังสือยินยอมให้ใช้ผลการตรวจสอบคุณสมบัติทางด้านถิ่นกำเนิดสินค้า
-->
<xs:schema id="Form4_8" targetNamespace="http://edi.dft.go.th/schema/v2/Form4_8.xsd" elementFormDefault="qualified"
           xmlns="http://edi.dft.go.th/schema/v2/Form4_8.xsd" xmlns:mstns="http://edi.dft.go.th/schema/v2/Form4_8.xsd"
           xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Form4_8">
    <xs:complexType>
      <xs:sequence>
        <!-- ข้อมูลส่วนหลัก -->
        <xs:element name="Form4_8Header">
          <xs:complexType>
            <xs:sequence>
              <!-- ข้อมูลช่องที่ 1 (ส่วนหลัก) -->
              <xs:element name="CompanyDetailEDI">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="card_id">
                      <xs:annotation>
                        <xs:documentation>บัตรประจำตัวกรรมการผู้มีอำนาจ/ผู้รับมอบอำนาจ เลขที่ </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:length value="9" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="company_email" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Email</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="site_id" type="Site_Code">
                      <xs:annotation>
                        <xs:documentation>รหัสสถานที่ที่จะไปรับ (ใช้รหัส ดูรายละเอียดได้จากรหัสสถานที่ Site_Code)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 1 (ส่วนรอง)-->
              <xs:element name="CompanyOBDetailEDI">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="dest_remark" default="- - - - -" >
                      <xs:annotation>
                        <xs:documentation>O/B หรือ C/O</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="" />
                          <xs:enumeration value="- - - - -" />
                          <xs:enumeration value="O/B" />
                          <xs:enumeration value="C/O" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="ob_address" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>ชื่อบริษัทหรือข้อความที่ต้องการแสดง กรณีกำหนด dest_remark เป็น O/B หรือ C/O</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="400" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="ob_email" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>ob_email</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 2 (ส่วนปลายทาง) -->
              <xs:element name="DestinationDetailEDI">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="destination_company">
                      <xs:annotation>
                        <xs:documentation>ชื่อบริษัทผู้ซื้อหรือผู้รับ</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1" />
                          <xs:maxLength value="255" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_taxID" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>เลขประจำตัวผู้เสียภาษี</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="30" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_address">
                      <xs:annotation>
                        <xs:documentation>ที่อยู่</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="255" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_province">
                      <xs:annotation>
                        <xs:documentation>เมือง</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1" />
                          <xs:maxLength value="50" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_receive_country">
                      <xs:annotation>
                        <xs:documentation>ประเทศ</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1" />
                          <xs:maxLength value="50" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="dest_remark1" default="- - - - -">
                      <xs:annotation>
                        <xs:documentation>O/B หรือ C/O (ผู้ซื้อหรือผู้รับประเทศปลายทาง)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="" />
                          <xs:enumeration value="- - - - -" />
                          <xs:enumeration value="O/B" />
                          <xs:enumeration value="C/O" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="ob_dest_address" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>ชื่อบริษัทหรือข้อความที่ต้องการแสดง กรณีกำหนด dest_remark1 เป็น O/B หรือ C/O</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="400" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_phone" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>โทรศัพท์ </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="50" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_fax" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>โทรสาร</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="50" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_email" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>e-mail</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 2 (ส่วนประเทศ) -->
              <xs:element name="DestinationDetailEDICountry">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="destination_country" type="Form4_8_Country_List">
                      <xs:annotation>
                        <xs:documentation>ประเทศปลายทาง (ใช้รหัสประเทศ ดูรายละเอียดได้จาก Form4_8_Country_List)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 3 (ส่วนยานพาหนะที่ส่งออก) -->
              <xs:element name="TransportDetailEDI">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="ship_by">
                      <xs:annotation>
                        <xs:documentation>ยานพาหนะที่ส่งออก (0=เรือ,1=เครื่องบิน,2=ทางบก,3=ไปรษณีย์,4=นำติดตัว)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0" />
                          <xs:enumeration value="1" />
                          <xs:enumeration value="2" />
                          <xs:enumeration value="3" />
                          <xs:enumeration value="4" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="transport_by">
                      <xs:annotation>
                        <xs:documentation>Means of transport and route (as far as known)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="255" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="departure_date">
                      <xs:annotation>
                        <xs:documentation>Shipment date (YYYYMMDD : 20100108)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="8" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="vasel_name">
                      <xs:annotation>
                        <xs:documentation>Vessel's name / Aircraft etc</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="70" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="port_discharge">
                      <xs:annotation>
                        <xs:documentation>Port of Discharge: Portname, Country name</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="70" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 4 (ส่วน gross weight และ Quantity) -->
              <xs:element name="WeightAndQuantity">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="currency_code" type="Currency_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>กรณีใช้สกุลเงินอื่น:(ใช้รหัส ดูรายละเอียดได้จากรหัสหน่วย Currency_Code)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="quantity1" >
                      <xs:annotation>
                        <xs:documentation>ปริมาณ</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="18" />
                          <xs:fractionDigits value="4" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="q_unit_code1" type="Unit_Code">
                      <xs:annotation>
                        <xs:documentation>รหัสหน่วย (ดูรายละเอียดได้จากตารางรหัสหน่วย)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="quantity2" default="0" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>ปริมาณ</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="18" />
                          <xs:fractionDigits value="4" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="q_unit_code2" type="Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>รหัสหน่วย (ดูรายละเอียดได้จากตารางรหัสหน่วย)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="quantity3" default="0" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>ปริมาณ</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="18" />
                          <xs:fractionDigits value="4" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="q_unit_code3" type="Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>รหัสหน่วย (ดูรายละเอียดได้จากตารางรหัสหน่วย)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="quantity4" default="0" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>ปริมาณ</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="18" />
                          <xs:fractionDigits value="4" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="q_unit_code4" type="Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>รหัสหน่วย (ดูรายละเอียดได้จากตารางรหัสหน่วย)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="quantity5" default="0" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>ปริมาณ</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="18" />
                          <xs:fractionDigits value="4" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="q_unit_code5" type="Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>รหัสหน่วย (ดูรายละเอียดได้จากตารางรหัสหน่วย)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 5 (Invoice ต่างประเทศ) -->
              <xs:element name="InvoicesThirdCountry" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element maxOccurs="unbounded" name="InvoicesThirdCountryDetail" minOccurs ="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="invoiceno_thirdcountry">
                            <xs:annotation>
                              <xs:documentation>หมายเลข Third Country Invoice</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="invoicedate_thirdcountry" type="Date" >
                            <xs:annotation>
                              <xs:documentation>วันที่ Third Country Invoice (รูปแบบ YYYYMMDD เช่น 20101231)</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 5 (Invoice List) -->
              <xs:element name="Invoices">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="invoice_no1" minOccurs="1" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>หมายเลข Invoice 1 (ควรระบุ 13 ตัวอักษร ต่อ 1 บรรทัด)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="35" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="invoice_date1">
                      <xs:annotation>
                        <xs:documentation>วันที่ออก Invoice 1 (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:length value ="8"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="invoice_no2" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>หมายเลข Invoice 2</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="35" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="invoice_date2" minOccurs="0" type="Date">
                      <xs:annotation>
                        <xs:documentation>วันที่ออก Invoice 2 (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="invoice_no3" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>หมายเลข Invoice 3</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="35" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="invoice_date3" minOccurs="0" type="Date">
                      <xs:annotation>
                        <xs:documentation>วันที่ออก Invoice 3 (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="invoice_no4" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>หมายเลข Invoice 4</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="35" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="invoice_date4" minOccurs="0" type="Date">
                      <xs:annotation>
                        <xs:documentation>วันที่ออก Invoice 4 (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="invoice_no5" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>หมายเลข Invoice 5</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="35" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="invoice_date5" minOccurs="0" type="Date">
                      <xs:annotation>
                        <xs:documentation>วันที่ออก Invoice 5 (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="bill_type">
                      <xs:annotation>
                        <xs:documentation>ประเภทใบตราส่งสินค้า (B/L=0, AWB=1, ใบรับไปรษณีย์=2, อื่นๆ=3)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0" />
                          <xs:enumeration value="1" />
                          <xs:enumeration value="2" />
                          <xs:enumeration value="3" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="bill_type_other" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>รายละเอียด (กรณีเลือก bill_type เป็น 3=อื่นๆ)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="255" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="bill_no">
                      <xs:annotation>
                        <xs:documentation>เลขที่ ใบตราส่งสินค้า (B/L หรือ AWB)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="35" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="bill_date">
                      <xs:annotation>
                        <xs:documentation>วันที่ ใบตราส่งสินค้า (B/L หรือ AWB) (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:length value ="8"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="export_date" type="Date">
                      <xs:annotation>
                        <xs:documentation>วันที่ส่งออก (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 6 (เอกสารที่แนบประกอบการพิจารณา)  -->
              <xs:element name="AttachFile">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="attach_file">
                      <xs:annotation>
                        <xs:documentation>เอกสารที่แนบประกอบการพิจารณา เช่น INVOICE, B/L, ผลการตรวจคุณสมบัติฯ</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="third_country_invoicing" default="0">
                      <xs:annotation>
                        <xs:documentation>กำหนดเป็น Third-Country Invoicing (0=ไม่เลือก หรือ 1=เลือก)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0" />
                          <xs:enumeration value="1" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="third_country">
                      <xs:annotation>
                        <xs:documentation>ระบุชื่อ+ประเทศผู้ออก Invoice (สำหรับกรณีเลือก Third-Country Invoicing เป็น 1)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="250" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="exibition" default="0">
                      <xs:annotation>
                        <xs:documentation>กำหนดเป็น Exibition (0 หรือ 1)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0" />
                          <xs:enumeration value="1" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="place_exibition">
                      <xs:annotation>
                        <xs:documentation>ระบุชื่องานและสถานที่จัดงาน (กรณีเลือก exibition เป็น 1)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="250" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="back_to_back_co" default="0">
                      <xs:annotation>
                        <xs:documentation>กำหนดเป็น Back-to-Back CO (0=ไม่เลือก หรือ 1=เลือก)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0" />
                          <xs:enumeration value="1" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="back_country">
                      <xs:annotation>
                        <xs:documentation>ระบุประเทศต้นทาง (กรณีกำหนด back_to_back_co เป็น 1)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="150" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลสำหรับบริษัทที่ต้องการออกหนังสือรับรอง แบบลงลายมือชื่อและตราประทับอิเล็กทรอนิกส์ (Electronic Signature and Seal) -->
              <xs:element name="SealSignSupported" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="SignRefID" type="xs:unsignedInt" minOccurs="1" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>รหัสอ้างอิงรูปภาพลายมือชื่อและตราประทับที่บันทึกไว้ในระบบเรียบร้อยแล้ว ซึ่งต้องการให้นำมาพิมพ์ลงในหนังสือรับรองฯ</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <!-- ข้อมูลส่วนรายการสินค้า และ การตรวจสอบต้นทุน -->
        <xs:element name="Form4_8Detail">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="Form4_8Product">
                <xs:complexType>
                  <xs:sequence>
                    <!-- ข้อมูลรายการสินค้าและราคา -->
                    <xs:element name="Form4_8DetailProduct">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="product_title" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>เฉพาะกลุ่มรถยนต์ => ข้อความ product title สำหรับแสดงก่อน HS.CODE พิกัดสินค้า (ใส่เฉพาะในลำดับที่รายการที่ต้องการแสดงเท่านั้น)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="tariff_code">
                            <xs:annotation>
                              <xs:documentation>พิกัด</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="20" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="product_name">
                            <xs:annotation>
                              <xs:documentation>ชื่อสินค้า</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="255" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="product_description">
                            <xs:annotation>
                              <xs:documentation>รายละเอียดสินค้า</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="255" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>

                          <xs:element name="model_name" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>รุ่นของสินค้า (ต้องระบุชื่อรุ่นสินค้า กรณีใช้พิกัดกรณีที่ใช้พิกัดศุลกากรภายใต้พิกัดที่ 84, 85 และ 87)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="200" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          
                          <xs:element name="net_weight" default="0">
                            <xs:annotation>
                              <xs:documentation>น้ำหนักสุทธิ</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="net_weight_unit" default="KGS" >
                            <xs:annotation>
                              <xs:documentation>รหัสหน่วยของ น้ำหนักสุทธิ (เริ่มใช้ KGM ตั้งแต่ 1/1/2014)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:enumeration value="KGS" />
                                <xs:enumeration value="KGM" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="fob_amt" default="0">
                            <xs:annotation>
                              <xs:documentation>มูลค่า FOB(US$)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="fob_amt_by_currency" default="0" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>มูลค่า FOB(ตามสกุลเงินอื่นที่เลือก)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="gross_weight" default="0" >
                            <xs:annotation>
                              <xs:documentation>Gross Weight</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="gross_weight_unit" type="Unit_Code">
                            <xs:annotation>
                              <xs:documentation>รหัสหน่วยของ Gross Weight (ดูข้อมูลได้จากข้อมูล Unit_Code)</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="usdinvoice" default="0" minOccurs ="0">
                            <xs:annotation>
                              <xs:documentation>มูลค่า USD ต่างประเทศ</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="mark">
                            <xs:annotation>
                              <xs:documentation>Shipping Mark</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="150" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="box8">
                            <xs:annotation>
                              <xs:documentation>ข้อมูลแสดงในช่อง 8 ของหนังสือรับรอง</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="30" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="display_usd_total" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>แสดงผลรวม USD ในช่อง 7 0=แสดง, 1=ไม่แสดง</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:enumeration value="0"/>
                                <xs:enumeration value="1"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="rule_type">
                            <xs:annotation>
                              <xs:documentation>
                                กฎที่ต้องการใช้สำหรับแสดงข้อมูลในช่อง 8 ของหนังสือรับรอง

                                1=กฎทั่วไป
                                "WO" สำหรับสินค้าที่ได้มาทั้งหมดหรือผลิตขึ้นในเขตประเทศของผู้ส่งออก
                                "CTH" กฎการเปลี่ยนพิกัดในระดับ 4 หลัก (Change in Tariff Heading)
                                "RVC__%" กฎสัดส่วนมูลค่าเพิ่มในภูมิภาค ไม่น้อยกว่าร้อยละ 40 %

                                2=กฎถิ่นกำเนิดเฉพาะสินค้า
                                "CTC" กฎการเปลี่ยนพิกัด
                                "WO-AK" กฎการได้มาของวัตถุดิบทั้งหมดหรือผลิตขึ้นในเขตประเทศใดประเทศหนึ่งของประเทศภาคี
                                "RVC__%" กฎสัดส่วนมูลค่าเพิ่มในภูมิภาค ไม่น้อยกว่าร้อยละ 40 %

                                3=สัดส่วนเพิ่มมูลค่าในภูมิภาคบวกกฎการเปลี่ยนพิกัด
                                "CC+RVC__%"
                                "CTH+RVC__%"
                                "CTSH+RVC__%"
                                "Specific Processes" กระบวนผลิตที่เฉพาะเจาะจง
                              </xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:enumeration value="1" />
                                <xs:enumeration value="2" />
                                <xs:enumeration value="3" />
                                <!--
                                1=กฎทั่วไป 
                                2=กฎถิ่นกำเนิดเฉพาะสินค้า
                                3=สัดส่วนเพิ่มมูลค่าในภูมิภาคบวกกฎการเปลี่ยนพิกัด
                                -->
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="Form4_8DetailCost" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="asset_shares_tax">
                            <xs:annotation>
                              <xs:documentation>เลขประตัวผู้เสียภาษี ของบริษัทเจ้าของผลการตรวจคุณสมบัติฯ</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="13" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="asset_shares">
                            <xs:annotation>
                              <xs:documentation>เลขที่อ้างอิงผลการตรวจสอบคุณสมบัติฯ (ต้นทุน)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="15" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="asset_shares_country" type="Asset_Country">
                            <xs:annotation>
                              <xs:documentation>ประเทศที่ขอใช้สิทธิฯ ของผลการตรวจคุณสมบัติฯ (ต้นทุน) - ดูรายละเอียดรหัสประเทศได้จาก Asset_Country)</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="asset_shares_date"  type="Date">
                            <xs:annotation>
                              <xs:documentation>วันที่อนุมัติผลการตรวจคุณสมบัติ(ต้นทุน) - รูปแบบ ค.ศ. YYYYMMDD เช่น 20100129</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="rovers_owner_company" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>ขื่อบริษัทเจ้าของผลการตรวจคุณสมบัติฯ (กรณีใช้ต้นทุนร่วม)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="200" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="rovers_allow_doc_no" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>เลขที่หนังสือยินยอมให้ใช้ผลการตรวจสอบคุณสมบัติทางด้านถิ่นกำเนิดสินค้า (กรณีใช้ต้นทุนร่วม)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="50" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="rovers_allow_doc_date"  type="Date" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>หนังสือยินยอมให้ใช้ผลการตรวจสอบคุณสมบัติทางด้านถิ่นกำเนิดสินค้า (กรณีใช้ต้นทุนร่วม) - รูปแบบ ค.ศ. YYYYMMDD เช่น 20100129</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <!-- ข้อมูลส่วนไฟล์ Scan เอกสารแนบ -->
        <xs:element name="Form4_8Attach">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" minOccurs="0" name="AttachDetail">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="file_name">
                      <xs:annotation>
                        <xs:documentation>ชื่อไฟล์ (ต้องระบุ .pdf ด้วย)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1" />
                          <xs:maxLength value="255" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="document_type">
                      <xs:annotation>
                        <xs:documentation>
                          ประเภทของเอกสาร:
                          0 = ใบกำกับสินค้า (Invoice)
                          1 = หลักฐานแสดงการส่งสินค้า (Bill of Landing หรือ Air Way Bill)
                          2 = เอกสารประกอบการพิจารณาอื่นๆ
                        </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0" />
                          <xs:enumeration value="1" />
                          <xs:enumeration value="2" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="document_description">
                      <xs:annotation>
                        <xs:documentation>รายละเอียดของเอกสาร</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1" />
                          <xs:maxLength value="255" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <!-- ข้อมูล Invoices Data -->
        <xs:element name="InvoiceData" minOccurs="0">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="Invoices" minOccurs="1">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="InvoiceDetail">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="invoice_no">
                            <xs:annotation>
                              <xs:documentation>Invoice no.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="50" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="invoice_date">
                            <xs:annotation>
                              <xs:documentation>วันที่ของ Invoice (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:length value ="8"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="shipper">
                            <xs:annotation>
                              <xs:documentation>Shipper/Exporter</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value ="300"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="destination_address">
                            <xs:annotation>
                              <xs:documentation>Destination Address</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value ="300"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="from_port">
                            <xs:annotation>
                              <xs:documentation>from port name</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="port_discharge">
                            <xs:annotation>
                              <xs:documentation>to port name</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="transport_by">
                            <xs:annotation>
                              <xs:documentation>Transport by</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="50" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="vasel_name">
                            <xs:annotation>
                              <xs:documentation>vasel name</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="etd">
                            <xs:annotation>
                              <xs:documentation>ETD date/Onboard date</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:length value="8" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_gross_weight" default="0">
                            <xs:annotation>
                              <xs:documentation>total gross weight</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="3" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_gross_weight_unit" default="KGS" type="Unit_Code">
                            <xs:annotation>
                              <xs:documentation>total gross weight unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_quantity1">
                            <xs:annotation>
                              <xs:documentation>Total quantity</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_quantity1_unit" type="Unit_Code">
                            <xs:annotation>
                              <xs:documentation>Total quantity unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_quantity2" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity2</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_quantity2_unit" type="Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity2 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_quantity3" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity3</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_quantity3_unit" type="Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity3 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_quantity4" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity4</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_quantity4_unit" type="Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity4 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_quantity5" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity4</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_quantity5_unit" type="Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity5 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_net_weight">
                            <xs:annotation>
                              <xs:documentation>Total net weight</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_net_weight_unit" default="KGS" type="Unit_Code">
                            <xs:annotation>
                              <xs:documentation>Total net weight unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_fob">
                            <xs:annotation>
                              <xs:documentation>Total FOB</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_cif">
                            <xs:annotation>
                              <xs:documentation>Total CIF</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_cfr">
                            <xs:annotation>
                              <xs:documentation>Total CRF</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="InvoiceProducts">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element minOccurs="1" maxOccurs="unbounded" name="ProductDetail">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="product_name">
                                  <xs:annotation>
                                    <xs:documentation>product name</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                      <xs:maxLength value="500" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="product_description">
                                  <xs:annotation>
                                    <xs:documentation>product description</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                      <xs:maxLength value="4000" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="net_weight" default="0">
                                  <xs:annotation>
                                    <xs:documentation>น้ำหนักสุทธิ</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18" />
                                      <xs:fractionDigits value="4" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="net_weight_unit" default="KGS" type="Unit_Code">
                                  <xs:annotation>
                                    <xs:documentation>Net Weight unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="gross_weight" default="0">
                                  <xs:annotation>
                                    <xs:documentation>น้ำหนัก</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18" />
                                      <xs:fractionDigits value="4" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="gross_weight_unit" default="KGS" type="Unit_Code">
                                  <xs:annotation>
                                    <xs:documentation>Gross weight unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="quantity1" default="0">
                                  <xs:annotation>
                                    <xs:documentation>ปริมาณ</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18" />
                                      <xs:fractionDigits value="4" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="quantity1_unit" type="Unit_Code">
                                  <xs:annotation>
                                    <xs:documentation>quantity unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="quantity2" default="0" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>ปริมาณ 2</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18" />
                                      <xs:fractionDigits value="4" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="quantity2_unit" type="Unit_Code" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>quantity2 unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="quantity3" default="0" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>ปริมาณ 3</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18" />
                                      <xs:fractionDigits value="4" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="quantity3_unit" type="Unit_Code" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>quantity3 unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="quantity4" default="0" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>ปริมาณ 4</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18" />
                                      <xs:fractionDigits value="4" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="quantity4_unit" type="Unit_Code" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>quantity4 unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="quantity5" default="0" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>ปริมาณ 5</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18" />
                                      <xs:fractionDigits value="4" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="quantity5_unit" type="Unit_Code" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>quantity5 unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="unit_price_usd" default="0" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>Unit Price (USD)</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="14" />
                                      <xs:fractionDigits value="2" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="fob_amt" default="0">
                                  <xs:annotation>
                                    <xs:documentation>FOB (USD)</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="14" />
                                      <xs:fractionDigits value="2" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="mark" default="NO MARK">
                                  <xs:annotation>
                                    <xs:documentation>shipping mark</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                      <xs:maxLength value="500" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="letter" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>letter of credit</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                      <xs:maxLength value="100" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <!-- ข้อมูลส่วน B/L หรือ AWB หรือ FCR -->
        <xs:element name="BLData" minOccurs="0">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="BLDetail">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="bl_no">
                      <xs:annotation>
                        <xs:documentation>B/L, AWB no.</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1" />
                          <xs:maxLength value="50" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="document_no" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Document no</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="50" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="document_owner" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>document owner</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="250" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="shipper">
                      <xs:annotation>
                        <xs:documentation>Shipper name</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1" />
                          <xs:maxLength value="500" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="consignee">
                      <xs:annotation>
                        <xs:documentation>Consignee name</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1" />
                          <xs:maxLength value="500" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="port_of_load">
                      <xs:annotation>
                        <xs:documentation>port of load</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1" />
                          <xs:maxLength value="250" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="port_of_discharge">
                      <xs:annotation>
                        <xs:documentation>port of discharge</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1" />
                          <xs:maxLength value="250" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="place_of_delivery">
                      <xs:annotation>
                        <xs:documentation>place of delivery</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="250" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="final_destination" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>final destination</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="300" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="onboard_date" type="Date">
                      <xs:annotation>
                        <xs:documentation>date of on board (format: YYYYMMDD)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="issue_date" type="Date">
                      <xs:annotation>
                        <xs:documentation>date of issue (format: YYYYMMDD)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="transport_by">
                      <xs:annotation>
                        <xs:documentation>transport by</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="vasel_name">
                      <xs:annotation>
                        <xs:documentation>vasel name</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="250" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_quantity1">
                      <xs:annotation>
                        <xs:documentation>Total quantity</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="14" />
                          <xs:fractionDigits value="4" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_quantity1_unit" type="Unit_Code">
                      <xs:annotation>
                        <xs:documentation>Total quantity unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="total_quantity2" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity2</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="14" />
                          <xs:fractionDigits value="4" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_quantity2_unit" type="Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity2 unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="total_quantity3" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity3</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="14" />
                          <xs:fractionDigits value="4" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_quantity3_unit" type="Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity3 unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="total_quantity4" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity4</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="14" />
                          <xs:fractionDigits value="4" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_quantity4_unit" type="Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity4 unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="total_quantity5" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity4</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="14" />
                          <xs:fractionDigits value="4" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_quantity5_unit" type="Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity5 unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="total_gross_weight" default="0">
                      <xs:annotation>
                        <xs:documentation>total gross quantity</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="18" />
                          <xs:fractionDigits value="4" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_gross_weight_unit" type="Unit_Code">
                      <xs:annotation>
                        <xs:documentation>total gross weight unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="total_net_weight" default="0">
                      <xs:annotation>
                        <xs:documentation>total net quantity</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="18" />
                          <xs:fractionDigits value="4" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_net_weight_unit" type="Unit_Code">
                      <xs:annotation>
                        <xs:documentation>total net weight unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="type" type="BL_Type" minOccurs="0" default="0">
                      <xs:annotation>
                        <xs:documentation>type of 0(default)=B/L,1=AWB,2=FCR</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="BLProducts">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element minOccurs="1" maxOccurs="unbounded" name="ProductDetail">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="product_name">
                            <xs:annotation>
                              <xs:documentation>product name</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="500" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="product_description">
                            <xs:annotation>
                              <xs:documentation>product description</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="4000" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="net_weight" default="0">
                            <xs:annotation>
                              <xs:documentation>net weight</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="net_weight_unit" type="Unit_Code">
                            <xs:annotation>
                              <xs:documentation>net weight unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="gross_weight" default="0">
                            <xs:annotation>
                              <xs:documentation>gross weight</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="gross_weight_unit" default="KGS" type="Unit_Code">
                            <xs:annotation>
                              <xs:documentation>gross weight unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="quantity1" default="0">
                            <xs:annotation>
                              <xs:documentation>ปริมาณ</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="quantity1_unit" type="Unit_Code">
                            <xs:annotation>
                              <xs:documentation>quantity unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="quantity2" default="0" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>ปริมาณ 2</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="quantity2_unit" type="Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>quantity2 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="quantity3" default="0" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>ปริมาณ 3</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="quantity3_unit" type="Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>quantity3 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="quantity4" default="0" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>ปริมาณ 4</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="quantity4_unit" type="Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>quantity4 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="quantity5" default="0" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>ปริมาณ 5</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="quantity5_unit" type="Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>quantity5 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="measurement" default="0" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>measurement</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="mark">
                            <xs:annotation>
                              <xs:documentation>shipping mark</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="500" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <!-- ข้อมูลวันที่ -->
  <xs:simpleType name="Date">
    <xs:union>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value ="8"/>
        </xs:restriction>
      </xs:simpleType>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value=""/>
        </xs:restriction>
      </xs:simpleType>
    </xs:union>
  </xs:simpleType>

  <!-- รหัสประเภทของใบตราส่งสินค้า -->
  <xs:simpleType name="BL_Type">
    <xs:restriction base="xs:integer">
      <xs:enumeration value="0" />
      <xs:enumeration value="1" />
      <xs:enumeration value="2" />
      <!--
      รหัสข้อมูล
      0 = B/L
      1 = AWB
      2 = FCR
      -->
    </xs:restriction>
  </xs:simpleType>

  <!-- รหัสสถานที่ ที่จะไปรับฟอร์ม -->
  <xs:simpleType name="Site_Code">
    <xs:restriction base="xs:string">
      <xs:enumeration value="ST-001" />
      <xs:enumeration value="ST-003" />
      <xs:enumeration value="ST-004" />
	  <xs:enumeration value="CM-001" />
	  <xs:enumeration value="HY-002" />
	  <xs:enumeration value="CB-003" />
	  <xs:enumeration value="SK-004" />
	  <xs:enumeration value="NK-005" />
	  <xs:enumeration value="CR-006" />
	  <xs:enumeration value="TK-008" />
	  <xs:enumeration value="MH-009" />
	  <xs:enumeration value="PN-51-001" />
	  <xs:enumeration value="PN-95-001" />
      <!-- รหัสของสถานที่รับ
        ST-001=กรมการค้าฯ (ส่วนกลาง)
        ST-001R=กรมการค้าฯ (ส่วนกลาง Rice)
        ST-001T=กรมการค้าต่างประเทศ (ส่วนกลาง Textile)
        ST-002=กรมการค้าฯ (ท่าเรือ)
        ST-003=กรมการค้าฯ (สุวรรณภูมิ)
        ST-004=กรมการค้าฯ (สอ)
        ST-005=กรมการค้าฯ (ตลาดไท)
        CB-003=สคต.เขต3 (ชลบุรี)
        CM-001=สคต.เขต1 (เชียงใหม่)
        CR-006=สคต.เขต6 (เชียงราย)
        HY-002=สคต.เขต2 (สงขลา)
        NK-005=สคต.เขต5 (หนองคาย)
        SK-004=สคต.เขต4 (สระแก้ว)
		TK-008=สพจ.ตาก
		MH-009=สพจ.มุกดาหาร
		PN-51-001=สพจ.ลำพูน
		PN-95-001=สพจ.ยะลา
      -->
    </xs:restriction>
  </xs:simpleType>

  <!-- รหัสประเทศปลายทาง-->
  <xs:simpleType name="Form4_8_Country_List">
    <xs:restriction base="xs:string">
      <xs:enumeration value="BN" />
      <xs:enumeration value="ID" />
      <xs:enumeration value="KH" />
      <xs:enumeration value="KR" />
      <xs:enumeration value="LA" />
      <xs:enumeration value="MM" />
      <xs:enumeration value="MY" />
      <xs:enumeration value="PH" />
      <xs:enumeration value="SG" />
      <xs:enumeration value="VN" />
      <!-- รหัสประเทศ
BN = BRUNEI DARUSSALAM
KH = CAMBODIA
ID = INDONESIA
LA = LAO REPUBLIC
MY = MALAYSIA
MM = MYANMAR
PH = PHILIPPINES
KR = Republic of Korea
SG = SINGAPORE
VN = VIETNAM                        
-->
    </xs:restriction>
  </xs:simpleType>

  <!-- รหัสประเทศ ตรวจสอบต้นทุน-->
  <xs:simpleType name="Asset_Country">
    <xs:restriction base="xs:string">
      <xs:enumeration value="" />
      <xs:enumeration value="43" />
      <!-- รหัสประเทศสำหรับการตรวจสอบต้นทุน
          43=ASEAN-KOREA(Form AK)
      -->
    </xs:restriction>
  </xs:simpleType>

  <!-- รหัสหน่วย -->
  <xs:simpleType name="Unit_Code">
    <xs:restriction base="xs:string">
      <xs:enumeration value="" />
      <xs:enumeration value="ADMT" />
      <xs:enumeration value="BAG" />
      <xs:enumeration value="BAGS" />
      <xs:enumeration value="BALE" />
      <xs:enumeration value="BALES" />
      <xs:enumeration value="BAR" />
      <xs:enumeration value="BASKET" />
      <xs:enumeration value="BASKETS" />
      <xs:enumeration value="BOARD" />
      <xs:enumeration value="BOARDS" />
      <xs:enumeration value="BOTTLE" />
      <xs:enumeration value="BOTTLES" />
      <xs:enumeration value="BOX" />
      <xs:enumeration value="BOXES" />
      <xs:enumeration value="BUNDLE" />
      <xs:enumeration value="BUNDLES" />
      <xs:enumeration value="CANS" />
      <xs:enumeration value="CBF" />
      <xs:enumeration value="CBFS" />
      <xs:enumeration value="CARDS" />
      <xs:enumeration value="CARTRIDGE" />
      <xs:enumeration value="CASE" />
      <xs:enumeration value="CASES" />
      <xs:enumeration value="CNTR" />
      <xs:enumeration value="COIL" />
      <xs:enumeration value="COILS" />
      <xs:enumeration value="CONE" />
      <xs:enumeration value="CRATE" />
      <xs:enumeration value="CRATES" />
      <xs:enumeration value="CTN" />
      <xs:enumeration value="CTNS" />
      <xs:enumeration value="DOZ" />
      <xs:enumeration value="DOZS" />
      <xs:enumeration value="DRUM" />
      <xs:enumeration value="DRUMS" />
      <xs:enumeration value="EACH" />
      <xs:enumeration value="FLAT CARD" />
      <xs:enumeration value="FLAT CARDS" />
      <xs:enumeration value="FLEXITANK" />
      <xs:enumeration value="FLEXITANKS" />
      <xs:enumeration value="FOOT" />
      <xs:enumeration value="GLL" />
      <xs:enumeration value="GAYLOADBOX" />
      <xs:enumeration value="GMS" />
      <xs:enumeration value="GYDS" />
      <xs:enumeration value="GRS" />
      <xs:enumeration value="GRSES" />
      <xs:enumeration value="HANKS" />
      <xs:enumeration value="HEADS" />
      <xs:enumeration value="IBC" />
      <xs:enumeration value="IDC" />
      <xs:enumeration value="IDCS" />
      <xs:enumeration value="IST" />
      <xs:enumeration value="ISTS" />
      <xs:enumeration value="JUMBO BAGS" />
      <xs:enumeration value="KARAT" />
      <xs:enumeration value="KGS" />
      <xs:enumeration value="KGM" />
      <xs:enumeration value="LBS" />
      <xs:enumeration value="LENGTHS" />
      <xs:enumeration value="LOT" />
      <xs:enumeration value="LOTS" />
      <xs:enumeration value="M/T" />
      <xs:enumeration value="M3" />
      <xs:enumeration value="MCTN" />
      <xs:enumeration value="MCTNS" />
      <xs:enumeration value="METER" />
      <xs:enumeration value="MTON" />
      <xs:enumeration value="MTONS" />
      <xs:enumeration value="MT" />
      <xs:enumeration value="MTS" />
      <xs:enumeration value="PACK" />
      <xs:enumeration value="PACKAGES" />
      <xs:enumeration value="PAIL" />
      <xs:enumeration value="PAILS" />
      <xs:enumeration value="PAIR" />
      <xs:enumeration value="PAIRS" />
      <xs:enumeration value="PALLET" />
      <xs:enumeration value="PALLETS" />
      <xs:enumeration value="PARCEL" />
      <xs:enumeration value="PARCELS" />
      <xs:enumeration value="PCS" />
      <xs:enumeration value="PIECE" />
      <xs:enumeration value="PIECES" />
      <xs:enumeration value="POUNDS" />
      <xs:enumeration value="RACK" />
      <xs:enumeration value="RACKS" />
      <xs:enumeration value="REELS" />
      <xs:enumeration value="ROLL" />
      <xs:enumeration value="ROLLS" />
      <xs:enumeration value="S/PACKS" />
      <xs:enumeration value="S/TRAY" />
      <xs:enumeration value="S/TRAYS" />
      <xs:enumeration value="SACKS" />
      <xs:enumeration value="SET" />
      <xs:enumeration value="SETS" />
      <xs:enumeration value="SHPRS" />
      <xs:enumeration value="SMLBUNDLES" />
      <xs:enumeration value="SPACEKRAFT" />
      <xs:enumeration value="SPOOL" />
      <xs:enumeration value="SPOOLS" />
      <xs:enumeration value="SQF" />
      <xs:enumeration value="SQU FEETT" />
      <xs:enumeration value="SQU FOOTS" />
      <xs:enumeration value="SQM2" />
      <xs:enumeration value="MTK" />
      <xs:enumeration value="STACK" />
      <xs:enumeration value="STEEL BULK" />
      <xs:enumeration value="SC" />
      <xs:enumeration value="SCS" />
      <xs:enumeration value="STEELCRATE" />
      <xs:enumeration value="STEELPLT" />
      <xs:enumeration value="STEELPLTS" />
      <xs:enumeration value="TIN" />
      <xs:enumeration value="TINCN" />
      <xs:enumeration value="TON" />
      <xs:enumeration value="TOTE" />
      <xs:enumeration value="TOTES" />
      <xs:enumeration value="TRAY" />
      <xs:enumeration value="TRAYP" />
      <xs:enumeration value="TRAYSP" />
      <xs:enumeration value="TRAYS" />
      <xs:enumeration value="UNIT" />
      <xs:enumeration value="UNITS" />
      <xs:enumeration value="VIAL" />
      <xs:enumeration value="VIALS" />
      <xs:enumeration value="WDCRATE" />
      <xs:enumeration value="WDCRATES" />
      <xs:enumeration value="WBOX" />
      <xs:enumeration value="WBOXS" />
      <xs:enumeration value="WCASE" />
      <xs:enumeration value="WOODENPLT" />
      <xs:enumeration value="WOODENPLTS" />
      <xs:enumeration value="YARD" />
      <xs:enumeration value="YARDS" />
      <!-- รหัสของหน่วย 
ADMT=ADMT
BAG=BAG
BAGS=BAGS
BALE=BALE
BALES=BALES
BAR=BAR
BASKET=BASKET
BASKETS=BASKETS
BOARD=BOARD
BOARDS=BOARDS
BOTTLE=BOTTLE
BOTTLES=BOTTLES
BOX=BOX
BOXES=BOXES
BUNDLE=BUNDLE
BUNDLES=BUNDLES
CANS=CANS
CBF=CARDBOARD FIBRITE
CBFS=CARDBOARD FIBRITES 
CARDS=CARDS
CARTRIDGE=CARTRIDGE
CASE=CASE
CASES=CASES
CNTR=CNTR
COIL=COIL
COILS=COILS
CONE=CONE
CRATE=CRATE
CRATES=CRATES
CTN=CTN
CTNS=CTNS
DOZ=DOZ
DOZS=DOZS
DRUM=DRUM
DRUMS=DRUMS
EACH=EACH
FLAT CARD=FLAT CARD
FLAT CARDS=FLAT CARDS
FLEXITANK=FLEXITANK
FLEXITANKS=FLEXITANKS
FOOT=FOOT
GLL=GALLON
GAYLOADBOX=GAYLOADBOX
GMS=GMS
GYDS=GROSS YARD
GRS=GRS
GRSES=GRSES
HANKS=HANKS
HEADS=HEADS
IBC=IBC(INTERMEDIATE BULK CONTAINER)
IDC=IDC
IDCS=IDCS
IST=IST
ISTS=ISTS
JUMBO BAGS=JUMBO BAGS
KARAT=KARAT
KGS=KGS
LBS=LBS
LENGTHS=LENGTHS
LOT=LOT
LOTS=LOTS
M/T=M/T
M3=M3
MCTN=MCTN
MCTNS=MCTNS
METER=METER
MTON=METRIC TON 
MTONS=METRIC TONS 
MT=MT
MTS=MTS
PACK=PACK
PACKAGES=PACKAGES
PAIL=PAIL
PAILS=PAILS
PAIR=PAIR
PAIRS=PAIRS
PALLET=PALLET
PALLETS=PALLETS
PARCEL=PARCEL
PARCELS=PARCELS
PCS=PCS
PIECE=PIECE
PIECES=PIECES
POUNDS=POUNDS
REELS=REELS
ROLL=ROLL
ROLLS=ROLLS
S/PACKS=S/PACKS
S/TRAY=S/TRAY
S/TRAYS=S/TRAYS
SACKS=SACKS
SET=SET
SETS=SETS
SHPRS=SHIPPERS
SMLBUNDLES=SMLBUNDLES
SPACEKRAFT=SPACEKRAFT
SPOOL=SPOOL
SPOOLS=SPOOLS
SQF=SQUARE FEETT
SQU FEETT=SQUARE FEETT
SQU FOOTS=SQUARE FOOTS
SQM2=SQUARE METRE 
MTK=SQUARE METRE 
STACK=STACK
STEEL BULK=STEEL BULK
SC=STEEL CASE
SCS=STEEL CASES
STEELCRATE=STEELCRATE
STEELPLT=STEELPLT
STEELPLTS=STEELPLTS
TIN=TIN
TINCN=TIN-CAN
TON=TON
TOTE=TOTE
TOTES=TOTES
TRAY=TRAY
TRAYP=TRAY/PACK
TRAYSP=TRAY/PACKS
TRAYS=TRAYS
UNIT=UNIT
UNITS=UNITS
VIAL=VIAL
VIALS=VIALS
WDCRATE=WDCRATE
WDCRATES=WDCRATES
WBOX=WOODEN BOX
WBOXS=WOODEN BOXS
WCASE=WOODENCASE
WOODENPLT=WOODENPLT
WOODENPLTS=WOODENPLTS
YARD=YARD
YARDS=YARDS
-->
    </xs:restriction>
  </xs:simpleType>

  <!-- สกุลเงิน -->
  <xs:simpleType name="Currency_Code">
    <xs:restriction base="xs:string">
      <xs:enumeration value="ADP" />
      <xs:enumeration value="AED" />
      <xs:enumeration value="AFA" />
      <xs:enumeration value="ALL" />
      <xs:enumeration value="ANG" />
      <xs:enumeration value="AON" />
      <xs:enumeration value="ARS" />
      <xs:enumeration value="ATS" />
      <xs:enumeration value="AUD" />
      <xs:enumeration value="AWG" />
      <xs:enumeration value="BBD" />
      <xs:enumeration value="BDT" />
      <xs:enumeration value="BEF" />
      <xs:enumeration value="BGL" />
      <xs:enumeration value="BHD" />
      <xs:enumeration value="BIF" />
      <xs:enumeration value="BMD" />
      <xs:enumeration value="BND" />
      <xs:enumeration value="BOB" />
      <xs:enumeration value="BRL" />
      <xs:enumeration value="BSD" />
      <xs:enumeration value="BTN" />
      <xs:enumeration value="BWP" />
      <xs:enumeration value="BYB" />
      <xs:enumeration value="BZD" />
      <xs:enumeration value="CAD" />
      <xs:enumeration value="CHF" />
      <xs:enumeration value="CNY" />
      <xs:enumeration value="COP" />
      <xs:enumeration value="CYP" />
      <xs:enumeration value="CZK" />
      <xs:enumeration value="DEM" />
      <xs:enumeration value="DKK" />
      <xs:enumeration value="ESP" />
      <xs:enumeration value="EUR" />
      <xs:enumeration value="FIM" />
      <xs:enumeration value="FRF" />
      <xs:enumeration value="GBP" />
      <xs:enumeration value="GRD" />
      <xs:enumeration value="HKD" />
      <xs:enumeration value="HUF" />
      <xs:enumeration value="IDR" />
      <xs:enumeration value="IEP" />
      <xs:enumeration value="ILS" />
      <xs:enumeration value="INR" />
      <xs:enumeration value="IQD" />
      <xs:enumeration value="IRR" />
      <xs:enumeration value="ISK" />
      <xs:enumeration value="ITL" />
      <xs:enumeration value="JPY" />
      <xs:enumeration value="KES" />
      <xs:enumeration value="KHR" />
      <xs:enumeration value="KRW" />
      <xs:enumeration value="KWD" />
      <xs:enumeration value="LAK" />
      <xs:enumeration value="LKR" />
      <xs:enumeration value="MMK" />
      <xs:enumeration value="MTL" />
      <xs:enumeration value="MXN" />
      <xs:enumeration value="MXP" />
      <xs:enumeration value="MYR" />
      <xs:enumeration value="NLG" />
      <xs:enumeration value="NOK" />
      <xs:enumeration value="NPR" />
      <xs:enumeration value="NZD" />
      <xs:enumeration value="OMR" />
      <xs:enumeration value="PHP" />
      <xs:enumeration value="PKR" />
      <xs:enumeration value="PTE" />
      <xs:enumeration value="QAR" />
      <xs:enumeration value="RUR" />
      <xs:enumeration value="SAR" />
      <xs:enumeration value="SEK" />
      <xs:enumeration value="SGD" />
      <xs:enumeration value="SKK" />
      <xs:enumeration value="SYP" />
      <xs:enumeration value="THB" />
      <xs:enumeration value="TRL" />
      <xs:enumeration value="TTD" />
      <xs:enumeration value="TWD" />
      <xs:enumeration value="USD" />
      <xs:enumeration value="VEB" />
      <xs:enumeration value="VND" />
      <xs:enumeration value="ZAL" />
      <xs:enumeration value="ZAR" />
      <!--
ADP	=	ANDORRAN PESETA
AED	=	U.A.E. DIRHAM
AFA	=	AFGHANI
ALL	=	LEK
ANG	=	NETHERLANDS ANTILLEAN GUI
AON	=	NEW KWANZA
ARS	=	ARGENTINE PESO
ATS	=	AUSTRIAN SCHILLINGS
AUD	=	AUSTRALIAN DOLLAR
AWG	=	ARUBAN GUILDER
BBD	=	BARBADOS DOLLAR
BDT	=	BANGLADESH TAKA
BEF	=	BELGIAN FRANC
BGL	=	LEV
BHD	=	BAHRAINI DINAR
BIF	=	BURUNDI FRANC
BMD	=	BERMUDIAN DOLLAR
BND	=	BRUNEI DOLLAR
BOB	=	BOLIVIANO
BRL	=	BRAZIL REAL
BSD	=	BAHAMIAM DOLLAR
BTN	=	NGULTRUM
BWP	=	PULA
BYB	=	BELARUSSIAN RUBLE
BZD	=	BELIZE DOLLAR
CAD	=	CANADIAN DOLLAR
CHF	=	SWISS FRANC
CNY	=	CHINA RENMINBI
COP	=	COLOMBIAN PESO
CYP	=	CYPRUS POUND
CZK	=	CZECH KORUNA
DEM	=	GERMAN MARK
DKK	=	DANISH KRONE
ESP	=	SPANISH PESETA
EUR	=	EURO
FIM	=	FINNISH MARKKA
FRF	=	FRENCH FRANC
GBP	=	BRITISH POUND
GRD	=	GREEK DRACHMA
HKD	=	HONG KONG DOLLAR
HUF	=	FORINT
IDR	=	INDONESIA RUPEE
IEP	=	IRISH PUNT
ILS	=	SHEKEL
INR	=	INDIAN RUPEE
IQD	=	IRAQI DINAR
IRR	=	IRANIAN RIAL
ISK	=	ICELAND KRONA
ITL	=	ITALIAN LIRA
JPY	=	JAPANESE YEN
KES	=	KENYAN SHILLING
KHR	=	RIEL
KRW	=	KOREAN WON
KWD	=	KUWAITI DINAR
LAK	=	KIP
LKR	=	SRI LANKAN RUPEE
MMK	=	KYAT
MTL	=	MALTESE LIRA
MXN	=	MEXICAN NUEVO PESO
MXP	=	MEXICAN PESO
MYR	=	MALAYSIAN RINGGIT
NLG	=	DUTCH GUILDER
NOK	=	NORWEGIAN KRONE
NPR	=	NEPAL RUPEE
NZD	=	NEW ZEALAND DOLLAR
OMR	=	OMANI RIAL
PHP	=	PHILIPPINE PESO
PKR	=	PAKISTANI RUPEE
PTE	=	PORTUGUESE ESCUDO
QAR	=	QATARI RIYAL
RUR	=	RUSSIAN RUBLE
SAR	=	SAUDI RIYAL
SEK	=	SWEDISH KRONA
SGD	=	SINGAPORE DOLLAR
SKK	=	SLOVAK KORUNA
SYP	=	SYRIAN POUND
THB	=	THAI BAHT
TRL	=	TURKISH LIRA
TTD	=	TRINIDAD & TOBAGO DOLLAR
TWD	=	TAIWAN DOLLAR
USD	=	U.S. DOLLAR
VEB	=	VENEZUELAN BOLIVAR
VND	=	DONG
ZAL	=	SOUTH AFRICAN RAND
ZAR	=	SOUTH AFRICA RAND

      -->
    </xs:restriction>
  </xs:simpleType>

</xs:schema>