<?xml version="1.0"?>
<xs:schema xmlns="https://www.vmi.lt/cms/saf-t"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:doc="https://www.vmi.lt/cms/saf-t/dokumentacija"
           xmlns:xsd="http://www.w3.org/2001/XMLSchema"
           targetNamespace="https://www.vmi.lt/cms/saf-t"
           elementFormDefault="qualified" attributeFormDefault="unqualified"
           version="1.00" id="SAF-T">
 <xs:annotation>
  <xs:documentation>
   <doc:Title>VMI prie FM Standartinė apskaitos duomenų rinkmena</doc:Title>
   <doc:Copyright>Copyright OECD</doc:Copyright>
   <doc:Subject>Standartinė apskaitos duomenų rinkmena</doc:Subject>
   <doc:Version>
    <doc:Number>1.00</doc:Number>
    <doc:Status>galiojanti</doc:Status>
   </doc:Version>
   <doc:Author>VMI prie FM</doc:Author>
   <doc:ModificationDate>2015-07-21</doc:ModificationDate>
  </xs:documentation>
 </xs:annotation>
 <xs:element name="AuditFile">
  <xs:complexType>
   <xs:sequence>
    <xs:element name="Header">
     <xs:annotation>
      <xs:documentation>Antraštinė.</xs:documentation>
     </xs:annotation>
     <xs:complexType>
      <xs:complexContent>
       <xs:extension base="HeaderStructure">
        <xs:sequence>
         <xs:element name="TaxAccountingBasis">
          <xs:annotation>
           <xs:documentation>Kaupimo ar pinigų principas. Pasirinkimai: K -
                             kaupimo, P - pinigų.</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
           <xs:restriction base="SAFshorttextType">
            <xs:enumeration value="K"/>
            <xs:enumeration value="P"/>
           </xs:restriction>
          </xs:simpleType>
         </xs:element>
        </xs:sequence>
       </xs:extension>
      </xs:complexContent>
     </xs:complexType>
    </xs:element>
    <xs:element name="MasterFiles" minOccurs="0">
     <xs:annotation>
      <xs:documentation>Pagrindinė duomenų byla.</xs:documentation>
     </xs:annotation>
     <xs:complexType>
      <xs:sequence>
       <xs:element name="GeneralLedgerAccounts" minOccurs="0">
        <xs:annotation>
         <xs:documentation>Didžioji knyga.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="Account" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Buhalterinės sąskaitos duomenys.</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:sequence>
             <xs:element name="AccountID" type="SAFmiddle2textType">
              <xs:annotation>
               <xs:documentation>Didžiosios knygos sąskaitos kodas. Galima
                                 įtraukti subsąskaitų numerius. Gali apimti daug
                                 skirtingų lygių tam, kad būtų galima kuo geriau
                                 identifikuoti sąskaitą. Gali apimti išlaidų
                                 centrus, tokius kaip: įmonė, padalinys,
                                 regionas, grupė ir filialas/departamentas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="AccountDescription" type="SAFlongtextType">
              <xs:annotation>
               <xs:documentation>Didžiosios knygos sąskaitos pavadinimas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="AccountTableID" type="SAFmiddle2textType">
              <xs:annotation>
               <xs:documentation>Didžiosios knygos sąskaitos kodas pagal
                                 Didžiosios knygos sąskaitų klasifikatorių.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="AccountTableDescription" type="SAFlongtextType">
              <xs:annotation>
               <xs:documentation>Didžiosios knygos sąskaitos pavadinimas pagal
                                 Didžiosios knygos sąskaitų klasifikatorių.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="AccountType">
              <xs:annotation>
               <xs:documentation>
                Sąskaitos tipas. Pasirinkimai: „Ilgalaikis turtas“,
                „Trumpalaikis turtas“, „Nuosavas kapitalas“, „Įsipareigojimai“,
                „Pajamos“, „Sąnaudos“.
               </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
               <xs:restriction base="SAFshorttextType">
                <xs:enumeration value="Ilgalaikis turtas"/>
                <xs:enumeration value="Trumplaikis turtas"/>
                <xs:enumeration value="Nuosavas kapitalas"/>
                <xs:enumeration value="Įsipareigojimai"/>
                <xs:enumeration value="Pajamos"/>
                <xs:enumeration value="Sąnaudos"/>
               </xs:restriction>
              </xs:simpleType>
             </xs:element>
             <xs:choice>
              <xs:element name="OpeningDebitBalance" type="SAFmonetaryType">
               <xs:annotation>
                <xs:documentation>Debeto likutis pasirinkto periodo pradžioje,
                                  įvertintas antraštėje nurodyta standartine
                                  valiuta.</xs:documentation>
               </xs:annotation>
              </xs:element>
              <xs:element name="OpeningCreditBalance" type="SAFmonetaryType">
               <xs:annotation>
                <xs:documentation>Kredito likutis pasirinkto periodo pradžioje,
                                  įvertintas antraštėje nurodyta standartine
                                  valiuta.</xs:documentation>
               </xs:annotation>
              </xs:element>
             </xs:choice>
             <xs:choice>
              <xs:element name="ClosingDebitBalance" type="SAFmonetaryType">
               <xs:annotation>
                <xs:documentation>Debeto likutis pasirinkto periodo pabaigoje,
                                  įvertintas antraštėje nurodyta standartine
                                  valiuta.</xs:documentation>
               </xs:annotation>
              </xs:element>
              <xs:element name="ClosingCreditBalance" type="SAFmonetaryType">
               <xs:annotation>
                <xs:documentation>Kredito likutis pasirinkto periodo pabaigoje,
                                  įvertintas antraštėje nurodyta standartine
                                  valiuta.</xs:documentation>
               </xs:annotation>
              </xs:element>
             </xs:choice>
            </xs:sequence>
           </xs:complexType>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
       <xs:element name="Customers" minOccurs="0">
        <xs:annotation>
         <xs:documentation>
          Pirkėjai, kiti debitoriai(esantys rinkmenoje).
         </xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="Customer" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Pirkėjas, debitorius.</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:complexContent>
             <xs:extension base="CompanyStructure">
              <xs:sequence>
               <xs:element name="CustomerID" type="SAFmiddle2textType">
                <xs:annotation>
                 <xs:documentation>Unikalus pirkėjo, debitoriaus numeris
                                   subjekto apskaitos sistemoje.</xs:documentation>
                </xs:annotation>
               </xs:element>
               <xs:element name="SelfBillingIndicator" type="SAFcodeType"
                           minOccurs="0">
                <xs:annotation>
                 <xs:documentation>
                  Žymima - „V“, kai PVM sąskaitą faktūrą/sąskaitą išsirašo pats
                  prekių gavėjas.
                 </xs:documentation>
                </xs:annotation>
               </xs:element>
               <xs:element name="AccountID" type="SAFmiddle2textType">
                <xs:annotation>
                 <xs:documentation>Didžiosios knygos sąskaitos kodas. Galima
                                   įtraukti subsąskaitų numerius. Gali apimti
                                   daug skirtingų lygių tam, kad būtų galima kuo
                                   geriau identifikuoti sąskaitą. Gali apimti
                                   išlaidų centrus, tokius kaip: įmonė,
                                   padalinys, regionas, grupė ir
                                   filialas/departamentas.</xs:documentation>
                </xs:annotation>
               </xs:element>
               <xs:choice>
                <xs:element name="OpeningDebitBalance" type="SAFmonetaryType">
                 <xs:annotation>
                  <xs:documentation>Debeto likutis pasirinkto periodo pradžioje,
                                    įvertintas antraštėje nurodyta standartine
                                    valiuta.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="OpeningCreditBalance" type="SAFmonetaryType">
                 <xs:annotation>
                  <xs:documentation>Kredito likutis pasirinkto periodo
                                    pradžioje, įvertintas antraštėje nurodyta
                                    standartine valiuta.</xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:choice>
               <xs:choice>
                <xs:element name="ClosingDebitBalance" type="SAFmonetaryType">
                 <xs:annotation>
                  <xs:documentation>Debeto likutis pasirinkto periodo pabaigoje,
                                    įvertintas antraštėje nurodyta standartine
                                    valiuta.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="ClosingCreditBalance" type="SAFmonetaryType">
                 <xs:annotation>
                  <xs:documentation>Kredito likutis pasirinkto periodo
                                    pabaigoje, įvertintas antraštėje nurodyta
                                    standartine valiuta.</xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:choice>
               <xs:element name="OpenSalesInvoices" minOccurs="0">
                <xs:annotation>
                 <xs:documentation>
                  Neapmokėtų pardavimo dokumentų informacija.
                 </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                 <xs:sequence>
                  <xs:element name="InvoiceNo" type="SAFmiddle2textType">
                   <xs:annotation>
                    <xs:documentation>Neapmokėtos sąskaitos faktūros serija ir
                                      numeris, PVM Sąskaitos faktūros serija ir
                                      numeris.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="InvoiceDate" type="xs:date">
                   <xs:annotation>
                    <xs:documentation>Neapmokėtos sąskaitos faktūros data, PVM
                                      Sąskaitos faktūros data.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="GLPostingDate" type="xs:date">
                   <xs:annotation>
                    <xs:documentation>Data, kada Didžiojoje knygoje fiksuojamas
                                      ūkinės operacijos ar ūkinio įvykio įrašas.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="TransactionID" type="SAFmiddle2textType">
                   <xs:annotation>
                    <xs:documentation>Unikalus numeris, kuris priskirtas ūkinei
                                      opercijai/ įvykiui ir kuris gali būti
                                      grindžiamas viena ar keliomis serijomis.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="Amount" type="SAFmonetaryType">
                   <xs:annotation>
                    <xs:documentation>Sąskaitos faktūros arba PVM sąskaitos
                                      faktūros suma, įvertinta antraštėje
                                      nurodyta valiuta.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="CurrencyAmount" type="SAFmonetaryType">
                   <xs:annotation>
                    <xs:documentation>Suma atitinkama valiuta.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="UnpaidAmount" type="SAFmonetaryType">
                   <xs:annotation>
                    <xs:documentation>Neapmokėta sąskaitos faktūros arba PVM
                                      sąskaitos faktūros suma, įvertinta
                                      antraštėje nurodyta valiuta.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="UnpaidAmountCurrency"
                              type="SAFmonetaryType">
                   <xs:annotation>
                    <xs:documentation>Neapmokėta suma atitinkama valiuta.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                 </xs:sequence>
                </xs:complexType>
               </xs:element>
              </xs:sequence>
             </xs:extension>
            </xs:complexContent>
           </xs:complexType>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
       <xs:element name="Suppliers" minOccurs="0">
        <xs:annotation>
         <xs:documentation>
          Tiekėjai, kiti kreditoriai (esantys rinkmenoje).
         </xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="Supplier" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Tiekėjas, kreditorius.</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:complexContent>
             <xs:extension base="CompanyStructure">
              <xs:sequence>
               <xs:element name="SupplierID" type="SAFmiddle2textType">
                <xs:annotation>
                 <xs:documentation>Tiekėjo, kreditoriaus unikalus numeris
                                   subjekto apskaitos sistemoje.</xs:documentation>
                </xs:annotation>
               </xs:element>
               <xs:element name="SelfBillingIndicator" type="SAFcodeType">
                <xs:annotation>
                 <xs:documentation>
                  Žymima - „V“, kai PVM sąskaitą faktūrą/sąskaitą išsirašo pats
                  prekių gavėjas.
                 </xs:documentation>
                </xs:annotation>
               </xs:element>
               <xs:element name="AccountID" type="SAFmiddle2textType">
                <xs:annotation>
                 <xs:documentation>Didžiosios knygos sąskaitos kodas. Galima
                                   įtraukti subsąskaitų numerius. Gali apimti
                                   daug skirtingų lygių tam, kad būtų galima kuo
                                   geriau identifikuoti sąskaitą. Gali apimti
                                   išlaidų centrus, tokius kaip: įmonė,
                                   padalinys, regionas, grupė ir
                                   filialas/departamentas.</xs:documentation>
                </xs:annotation>
               </xs:element>
               <xs:choice>
                <xs:element name="OpeningDebitBalance" type="SAFmonetaryType">
                 <xs:annotation>
                  <xs:documentation>Debeto likutis pasirinkto periodo pradžioje,
                                    įvertintas antraštėje nurodyta standartine
                                    valiuta.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="OpeningCreditBalance" type="SAFmonetaryType">
                 <xs:annotation>
                  <xs:documentation>Kredito likutis pasirinkto periodo
                                    pradžioje, įvertintas antraštėje nurodyta
                                    standartine valiuta.</xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:choice>
               <xs:choice>
                <xs:element name="ClosingDebitBalance" type="SAFmonetaryType">
                 <xs:annotation>
                  <xs:documentation>Debeto likutis pasirinkto periodo pabaigoje,
                                    įvertintas antraštėje nurodyta standartine
                                    valiuta.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="ClosingCreditBalance" type="SAFmonetaryType">
                 <xs:annotation>
                  <xs:documentation>Kredito likutis pasirinkto periodo
                                    pabaigoje, įvertintas antraštėje nurodyta
                                    standartine valiuta.</xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:choice>
               <xs:element name="OpenPurchaseInvoices" minOccurs="0">
                <xs:annotation>
                 <xs:documentation>Neapmokėtų pirkimo dokumentų informacija.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                 <xs:sequence>
                  <xs:element name="InvoiceNo" type="SAFmiddle2textType">
                   <xs:annotation>
                    <xs:documentation>Neapmokėtos sąskaitos faktūros serija ir
                                      numeris, PVM Sąskaitos faktūros serija ir
                                      numeris.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="InvoiceDate" type="xs:date">
                   <xs:annotation>
                    <xs:documentation>Neapmokėtos sąskaitos faktūros data, PVM
                                      Sąskaitos faktūros data.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="GLPostingDate" type="xs:date">
                   <xs:annotation>
                    <xs:documentation>Data, kada Didžiojoje knygoje fiksuojamas
                                      ūkinės operacijos ar ūkinio įvykio įrašas.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="TransactionID" type="SAFmiddle2textType">
                   <xs:annotation>
                    <xs:documentation>
                     Unikalus numeris, kuris priskirtas ūkinei
                     operacijai/įvykiui ir kuris gali būti grindžiamas viena ar
                     keliomis serijomis.
                    </xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="Amount" type="SAFmonetaryType">
                   <xs:annotation>
                    <xs:documentation>Sąskaitos faktūros arba PVM sąskaitos
                                      faktūros suma, įvertinta antraštėje
                                      nurodyta valiuta.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="CurrencyAmount" type="SAFmonetaryType">
                   <xs:annotation>
                    <xs:documentation>Suma atitinkama valiuta.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="UnpaidAmount" type="SAFmonetaryType">
                   <xs:annotation>
                    <xs:documentation>Neapmokėta sąskaitos faktūros arba PVM
                                      sąskaitos faktūros suma, įvertinta
                                      antraštėje nurodyta valiuta.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                  <xs:element name="UnpaidAmountCurrency"
                              type="SAFmonetaryType">
                   <xs:annotation>
                    <xs:documentation>Neapmokėta suma atitinkama valiuta.</xs:documentation>
                   </xs:annotation>
                  </xs:element>
                 </xs:sequence>
                </xs:complexType>
               </xs:element>
              </xs:sequence>
             </xs:extension>
            </xs:complexContent>
           </xs:complexType>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
       <xs:element name="TaxTable" minOccurs="0">
        <xs:annotation>
         <xs:documentation>
          Mokesčių klasifikatoriaus duomenys. (Rinkmenos priedas – Mokesčių
          klasifikatorius)
         </xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="TaxTableEntry" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Mokesčio aprašymas.</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:sequence>
             <xs:element name="TaxType" type="SAFcodeType">
              <xs:annotation>
               <xs:documentation>Mokesčių tipas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Description" type="SAFlongtextType">
              <xs:annotation>
               <xs:documentation>Mokesčio tipo aprašymas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="TaxCodeDetails" maxOccurs="unbounded">
              <xs:annotation>
               <xs:documentation>Mokesčio informacija (duomenys).</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="TaxCode" type="SAFcodeType">
                 <xs:annotation>
                  <xs:documentation>Mokesčio kodas paieškai klasifikatoriuje.
                                    (žr. aprašo priedus)</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="EffectiveDate" type="xs:date" minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>Klasifikatoriaus įrašo galiojimo pradžios
                                    data.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="ExpirationDate" type="xs:date" minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>Klasifikatoriaus įrašo galiojimo pabaigos
                                    data.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="Description" type="SAFlongtextType"
                            minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>Mokesčio kodo aprašymas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:choice>
                 <xs:element name="TaxPercentage" type="xs:decimal">
                  <xs:annotation>
                   <xs:documentation>Mokesčio tarifas procentais (jei
                                     nenaudojamas fiksuotas mokestis).</xs:documentation>
                  </xs:annotation>
                 </xs:element>
                 <xs:element name="FlatTaxRate" type="AmountStructure">
                  <xs:annotation>
                   <xs:documentation>Fiksuotas mokestis (jei nenaudojamas
                                     mokesčio tarifas).</xs:documentation>
                  </xs:annotation>
                 </xs:element>
                </xs:choice>
                <xs:element name="Country" type="ISOCountryCode">
                 <xs:annotation>
                  <xs:documentation>Šalies kodas iš dviejų raidžių pagal ISO
                                    3166-1 alpha 2 standartą, pavyzdžiui, NL -
                                    Nyderlandai.</xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:sequence>
              </xs:complexType>
             </xs:element>
            </xs:sequence>
           </xs:complexType>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
       <xs:element name="UOMTable" minOccurs="0">
        <xs:annotation>
         <xs:documentation>Matavimo vienetų klasifikatorius.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="UOMTableEntry" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Matavimo vieneto įrašas.</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:sequence>
             <xs:element name="UnitOfMeasure" type="SAFcodeType">
              <xs:annotation>
               <xs:documentation>Matavimo vieneto kiekis, pvz., 12 vnt. pakuotė.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Description" type="SAFlongtextType">
              <xs:annotation>
               <xs:documentation>Matavimo vieneto aprašymas.</xs:documentation>
              </xs:annotation>
             </xs:element>
            </xs:sequence>
           </xs:complexType>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
       <xs:element name="AnalysisTypeTable" minOccurs="0">
        <xs:annotation>
         <xs:documentation>
          Analitinės apskaitos klasifikatorių duomenys, esantys rinkmenoje.
          Naudojama tolimesnei sandorio duomenų detalizacijai. Pvz., vieneto
          sąnaudos, papildomos išlaidos (ar kaštų centras), projektas.
         </xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="AnalysisTypeTableEntry" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Klasifikatoriaus įrašas.</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:sequence>
             <xs:element name="AnalysisType" type="SAFcodeType">
              <xs:annotation>
               <xs:documentation>Analizės tipo identifikatoriai, pvz., KC (kaštų
                                 centrui), DEP (departamentui) ir t. t.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="AnalysisTypeDescription" type="SAFlongtextType">
              <xs:annotation>
               <xs:documentation>Analizės tipo aprašymas, pvz., „Kaštų centras”.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="AnalysisID" type="SAFmiddle1textType">
              <xs:annotation>
               <xs:documentation>
                Analizės numeris, pvz., 1200-HDOF-TR (pagr. ofiso išlaikymo
                sąnaudos), P-4800-123 (123 projektui 4800 filiale).
               </xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="AnalysisIDDescription" type="SAFlongtextType">
              <xs:annotation>
               <xs:documentation>Analizės numerio aprašymas, pvz., „Pagr. ofiso
                                 sąnaudos”.</xs:documentation>
              </xs:annotation>
             </xs:element>
            </xs:sequence>
           </xs:complexType>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
       <xs:element name="MovementTypeTable" minOccurs="0">
        <xs:annotation>
         <xs:documentation>Judėjimo tipai ir potipiai.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="MovementTypeTableEntry" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Judėjimo tipo įrašas.</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:sequence>
             <xs:element name="MovementType" type="SAFcodeType">
              <xs:annotation>
               <xs:documentation>Nustatyti judėjimo rūšį (pobūdį) ar judėjimo
                                 liniją. Pvz., pardavimas, pirkimas, gamyba.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Description" type="SAFlongtextType">
              <xs:annotation>
               <xs:documentation>Judėjimo tipo (potipio) aprašymas.</xs:documentation>
              </xs:annotation>
             </xs:element>
            </xs:sequence>
           </xs:complexType>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
       <xs:element name="Products" minOccurs="0">
        <xs:annotation>
         <xs:documentation>Prekės/paslaugos.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="Product" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Prekė/paslauga.</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:sequence>
             <xs:element name="ProductCode" type="SAFmiddle2textType">
              <xs:annotation>
               <xs:documentation>Prekės/paslaugos kodas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="GoodsServicesID">
              <xs:annotation>
               <xs:documentation>
                Požymis, rodantis, ar tai prekės, ar paslaugos.
                (elementoreikšmės: PR - prekė, PS - paslauga)
               </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
               <xs:restriction base="SAFcodeType">
                <xs:enumeration value="PR"/>
                <xs:enumeration value="PS"/>
               </xs:restriction>
              </xs:simpleType>
             </xs:element>
             <xs:element name="ProductGroup" type="SAFmiddle2textType"
                         minOccurs="0">
              <xs:annotation>
               <xs:documentation>Kodas, kuris nustato bendrą požymį, pagal kurį
                                 panašūs produktai yra sugrupuoti.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Description" type="SAFlongtextType">
              <xs:annotation>
               <xs:documentation>Prekių ar paslaugų apibūdinimas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="ValuationMethod" type="SAFcodeType"
                         minOccurs="0">
              <xs:annotation>
               <xs:documentation>FIFO, LIFO, vidutinė kaina ir kt.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="UOMBase" type="SAFcodeType">
              <xs:annotation>
               <xs:documentation>Prekių/paslaugų matavimo vienetas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:sequence>
              <xs:annotation>
               <xs:documentation>Not needed when not applicable</xs:documentation>
              </xs:annotation>
              <xs:element name="UOMStandard" type="SAFcodeType">
               <xs:annotation>
                <xs:documentation>Standartinis matavimo vienetas šiam produktui,
                                  pvz., kilogramas, metrai, litrai ir kt.</xs:documentation>
               </xs:annotation>
              </xs:element>
              <xs:element name="UOMToUOMBaseConversionFactor" type="xs:decimal">
               <xs:annotation>
                <xs:documentation>Matavimo vienetų konversijos koeficentas,
                                  keičiant iš standartinio į bazinį.</xs:documentation>
               </xs:annotation>
              </xs:element>
             </xs:sequence>
             <xs:element name="Tax" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
               <xs:documentation>Mokestis.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="TaxType" type="SAFcodeType">
                 <xs:annotation>
                  <xs:documentation>Mokesčių tipas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="TaxCode" type="SAFcodeType">
                 <xs:annotation>
                  <xs:documentation>
                   Mokesčio kodas paieškai klasifikatoriuje (žr. aprašo priedus).
                  </xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:sequence>
              </xs:complexType>
             </xs:element>
            </xs:sequence>
           </xs:complexType>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
       <xs:element name="PhysicalStock" minOccurs="0">
        <xs:annotation>
         <xs:documentation>
          Atsargos (atsargų esančių rinkmenoje duomenys).
         </xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="PhysicalStockEntry" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Atsargų apibūdinimas.</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:sequence>
             <xs:element name="WarehouseID" type="SAFmiddle1textType"
                         minOccurs="0">
              <xs:annotation>
               <xs:documentation>Sandėlio numeris, kuriame laikomos prekės.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="StockOwner" type="SAFmiddle2textType"
                         minOccurs="0">
              <xs:annotation>
               <xs:documentation>
                Prekių, kurios laikomos sandėlyje, savininkas.
               </xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="StockOwnerID" type="SAFmiddle1textType"
                         minOccurs="0">
              <xs:annotation>
               <xs:documentation>
                Prekių, kurios laikomos sandėlyje, savininko identifikacinis
                numeris.
               </xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="ProductCode" type="SAFmiddle2textType">
              <xs:annotation>
               <xs:documentation>Prekės/paslaugos kodas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="ProductType" type="SAFshorttextType"
                         minOccurs="0">
              <xs:annotation>
               <xs:documentation>Skirtas nustatyti, kokios būklės yra prekė:
                                 žaliava, gaminama prekė, pagaminta prekė ar
                                 prekė, paruošta perparduoti.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="ProductStatus" type="SAFshorttextType"
                         minOccurs="0">
              <xs:annotation>
               <xs:documentation>Skirta nustatyti, kokios būklės yra prekė:
                                 nutrūkęs gamybos procesas, prekė sugadinta,
                                 pasenusi, tinkama ar kt.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="CustomsProcedure">
              <xs:annotation>
               <xs:documentation>
                Specialios muitinės procedūros, kurios taikomos pagal muitinės
                išduotus leidimus.
               </xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="CustomsProcedure" type="SAFlongtextType">
                 <xs:annotation>
                  <xs:documentation>Specialios muitinės procedūros, kurios
                                    taikomos pagal muitinės išduotus leidimus
                                    (Supaprastinto deklaravimo procedūra;
                                    galutinis vartojimas; laikinas įvežimas
                                    perdirbti; laikinas įvežimas; muitinės
                                    prižiūrimas perdiribimas; muitinis
                                    sandėliavimas).</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="CustomsAuthorizationDate" type="xs:date">
                 <xs:annotation>
                  <xs:documentation>
                   Muitinės išduoto leidimo data.
                  </xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="CustomsAuthorizationNumber"
                            type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>
                   Muitinės išduoto leidimo numeris.
                  </xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="CustomsAuthorizationGoodsNomenclatureCode"
                            type="SAFmiddle1textType">
                 <xs:annotation>
                  <xs:documentation>
                   Muitinės išduotame dokumente nurodytas keturženklis prekės
                   kombinuotos nomenklatūros kodas.
                  </xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:sequence>
              </xs:complexType>
             </xs:element>
             <xs:sequence>
              <xs:annotation>
               <xs:documentation>Not needed when UOMPhysicalStock equals UOMBase</xs:documentation>
              </xs:annotation>
              <xs:element name="UOMPhysicalStock" type="SAFcodeType">
               <xs:annotation>
                <xs:documentation>Atsargų matavimo vienetas.</xs:documentation>
               </xs:annotation>
              </xs:element>
              <xs:element name="UOMToUOMBaseConversionFactor" type="xs:decimal">
               <xs:annotation>
                <xs:documentation>Matavimo vienetų konversijos koeficentas,
                                  keičiant iš standartinio į bazinį.</xs:documentation>
               </xs:annotation>
              </xs:element>
             </xs:sequence>
             <xs:element name="UnitPrice" type="SAFmonetaryType" minOccurs="0">
              <xs:annotation>
               <xs:documentation>Vieneto kaina vienetui/vienetų grupės kiekiui
                                 antraštėje nurodyta valiuta.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="OpeningStockQuantity" type="SAFquantityType">
              <xs:annotation>
               <xs:documentation>Atsargų kiekis laikotarpio pradžioje.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="OpeningStockValue" type="SAFmonetaryType">
              <xs:annotation>
               <xs:documentation>Atsargų vertė laikotarpio pradžioje.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="ClosingStockQuantity" type="SAFquantityType">
              <xs:annotation>
               <xs:documentation>Atsargų kiekis laikotarpio pabaigoje.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="ClosingStockValue" type="SAFmonetaryType">
              <xs:annotation>
               <xs:documentation>Atsargų vertė laikotarpio pabaigoje.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="StockCharacteristics" minOccurs="0">
              <xs:annotation>
               <xs:documentation>Atsargų savybės.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence maxOccurs="unbounded">
                <xs:element name="StockCharacteristic" type="SAFshorttextType">
                 <xs:annotation>
                  <xs:documentation>Vartotojo neskaidomos prekių savybės (yra
                                    galima lentelė dar prieš apibūdinimą).</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="StockCharacteristicValue"
                            type="SAFmiddle1textType">
                 <xs:annotation>
                  <xs:documentation>Svoris, pakuotės dydis, spalva ir t.t.</xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:sequence>
              </xs:complexType>
             </xs:element>
             <xs:element name="PhysicalStockAcquisition" minOccurs="0">
              <xs:annotation>
               <xs:documentation>
                Informacija apie atsargas, turimas laikotarpio pradžioje.
               </xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="Supplier">
                 <xs:annotation>
                  <xs:documentation>
                   Atsargų, turimų laikotarpio pradžioje, tiekėjas.
                  </xs:documentation>
                 </xs:annotation>
                 <xs:complexType>
                  <xs:sequence>
                   <xs:element name="RegistrationNumber"
                               type="SAFmiddle1textType">
                    <xs:annotation>
                     <xs:documentation>Subjekto registracijos numeris/kodas
                                       (Juridinių asmenų registro kodas arba
                                       kodas užsienio valstybėje).</xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="Name" type="SAFlongtextType">
                    <xs:annotation>
                     <xs:documentation>Subjekto pavadinimas.</xs:documentation>
                    </xs:annotation>
                   </xs:element>
                  </xs:sequence>
                 </xs:complexType>
                </xs:element>
                <xs:element name="DateOfAcquisition" type="xs:date">
                 <xs:annotation>
                  <xs:documentation>Atsargų, turimų laikotarpio pradžioje,
                                    įsigijimo data.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="InvoiceNo" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Atsargų, turimų laikotarpio pradžioje,
                                    įsigijimo dokumento Nr.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="InvoiceDate" type="xs:date">
                 <xs:annotation>
                  <xs:documentation>Atsargų, turimų laikotarpio pradžioje,
                                    įsigijimo dokumento data.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="GLPostingDate" type="xs:date">
                 <xs:annotation>
                  <xs:documentation>Data, kada Didžiojoje knygoje fiksuojamas
                                    ūkinės operacijos ar ūkinio įvykio įrašas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="AcquiredQuantity" type="SAFquantityType">
                 <xs:annotation>
                  <xs:documentation>
                   Atsargų, turimų laikotarpio pradžioje, įsigytas kiekis,
                   nurodytas įsigijimo dokumente.
                  </xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="StockRemainderQuantity"
                            type="SAFquantityType">
                 <xs:annotation>
                  <xs:documentation>
                   Laikotarpio pradžioje likusių turimų atsargų, nurodytų
                   įsigijimo dokumente, kiekis.
                  </xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="StockRemainderAmount" type="SAFmonetaryType">
                 <xs:annotation>
                  <xs:documentation>
                   Laikotarpio pradžioje likusių turimų atsargų, nurodytų
                   įsigijimo dokumente, suma.
                  </xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:sequence>
              </xs:complexType>
             </xs:element>
            </xs:sequence>
           </xs:complexType>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
       <xs:element name="Assets" minOccurs="0">
        <xs:annotation>
         <xs:documentation>
          Turto (materialus, nematerialus ir finansinis turtas), esančio
          rinkmenoje, duomenys.
         </xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="Asset" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>
             Turtas (materialus, nematerialus ir finansinis turtas).
            </xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:sequence>
             <xs:element name="AssetID" type="SAFmiddle1textType">
              <xs:annotation>
               <xs:documentation>Unikalus turto identifikacinis kodas,
                                 inventorinis numeris.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="AccountID" type="SAFmiddle2textType">
              <xs:annotation>
               <xs:documentation>Didžiosios knygos sąskaitos kodas. Galima
                                 įtraukti subsąskaitų numerius. Gali apimti daug
                                 skirtingų lygių tam, kad būtų galima kuo geriau
                                 identifikuoti sąskaitą. Gali apimti išlaidų
                                 centrus, tokius kaip: įmonė, padalinys,
                                 regionas, grupė ir filialas/departamentas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Description" type="SAFlongtextType">
              <xs:annotation>
               <xs:documentation>Turto aprašymas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="AssetsregistrationID" type="SAFmiddle2textType"
                         minOccurs="0">
              <xs:annotation>
               <xs:documentation>
                Turtą identifikuojantis numeris (pvz., unikalus numeris,
                registracijos numeris).
               </xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Supplier" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
               <xs:documentation>Tiekėjas.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="SupplierName" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Tiekėjo pavadinimas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="SupplierID" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Tiekėjo unikalus kodas subjekto apskaitos
                                    sistemoje.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="PostalAddress" type="AddressStructure">
                 <xs:annotation>
                  <xs:documentation>Informacija apie turto tiekėjo adresą.</xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:sequence>
              </xs:complexType>
             </xs:element>
             <xs:element name="DateOfAcquisition" type="xs:date" minOccurs="0">
              <xs:annotation>
               <xs:documentation>Įsigijimo data.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="StartUpDate" type="xs:date">
              <xs:annotation>
               <xs:documentation>Įvedimo į eksploataciją data.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Valuations">
              <xs:annotation>
               <xs:documentation>Įvertinimas.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="Valuation" maxOccurs="unbounded">
                 <xs:annotation>
                  <xs:documentation>Įvertinimas.</xs:documentation>
                 </xs:annotation>
                 <xs:complexType>
                  <xs:sequence>
                   <xs:element name="AssetValuationType" type="SAFshorttextType"
                               minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>Turto apskaitymo būdas po pirminio
                                       įvertinimo (įsigijimo savikaina arba
                                       perkainavimo vertė).</xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="ValuationClass" type="SAFshorttextType"
                               minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>
                      Turto klasės, grupės, kurioms taikomi turto įvertinimo
                      metodai (ilgalaikis turtas).
                     </xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="AccountID" type="SAFmiddle2textType">
                    <xs:annotation>
                     <xs:documentation>Didžiosios knygos sąskaitos kodas. Galima
                                       įtraukti subsąskaitų numerius. Gali
                                       apimti daug skirtingų lygių tam, kad būtų
                                       galima kuo geriau identifikuoti sąskaitą.
                                       Gali apimti išlaidų centrus, tokius kaip:
                                       įmonė, padalinys, regionas, grupė ir
                                       filialas/departamentas.</xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="AcquisitionAndProductionCostsBegin"
                               type="SAFmonetaryType">
                    <xs:annotation>
                     <xs:documentation>Atrankos pradžios dieną turto įsigijimo
                                       (pasigaminimo) savikaina, įvertinta
                                       antraštėje nurodyta valiuta.</xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="AcquisitionAndProductionCostsEnd"
                               type="SAFmonetaryType">
                    <xs:annotation>
                     <xs:documentation>Atrankos pabaigos dieną turto įsigijimo
                                       (pasigaminimo) savikaina, įvertinta
                                       antraštėje nurodyta valiuta.</xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="InvestmentSupport" type="SAFmonetaryType"
                               minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>
                      Turto vertės padidėjimo suma (rekonstrukcija, kapitalinis
                      remontas ir kt.).
                     </xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:choice>
                    <xs:element name="AssetLifeYear" type="xs:decimal">
                     <xs:annotation>
                      <xs:documentation>Naudingo tarnavimo laikas metais.</xs:documentation>
                     </xs:annotation>
                    </xs:element>
                    <xs:element name="AssetLifeMonth" type="xs:decimal">
                     <xs:annotation>
                      <xs:documentation>Naudingo tarnavimo laikas mėnesiais.</xs:documentation>
                     </xs:annotation>
                    </xs:element>
                   </xs:choice>
                   <xs:element name="ImpairmentOfAssets" minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>
                      Turto nuvertėjimas.
                     </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                     <xs:sequence minOccurs="0">
                      <xs:element name="ImpairmentOfAssetsDate" type="xs:date"
                                  minOccurs="0">
                       <xs:annotation>
                        <xs:documentation>
                         Turto nuvertėjimo nustatymo data.
                        </xs:documentation>
                       </xs:annotation>
                      </xs:element>
                      <xs:element name="ImpairmentOfAssets"
                                  type="SAFmonetaryType" minOccurs="0">
                       <xs:annotation>
                        <xs:documentation>
                         Turto nuvertėjimo nustatymo suma.
                        </xs:documentation>
                       </xs:annotation>
                      </xs:element>
                      <xs:element name="EliminationOfAssetsDate" type="xs:date"
                                  minOccurs="0">
                       <xs:annotation>
                        <xs:documentation>Turto nuvertėjimo ar jo dalies
                                          panaikinimo nustatymo data.</xs:documentation>
                       </xs:annotation>
                      </xs:element>
                      <xs:element name="EliminationOfAssets"
                                  type="SAFmonetaryType" minOccurs="0">
                       <xs:annotation>
                        <xs:documentation>Turto nuvertėjimo ar jo dalies
                                          panaikinimo suma.</xs:documentation>
                       </xs:annotation>
                      </xs:element>
                     </xs:sequence>
                    </xs:complexType>
                   </xs:element>
                   <xs:element name="Transfers" type="SAFmonetaryType"
                               minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>
                      Turto perleidimo suma.
                     </xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="TransfersDate" type="xs:date"
                               minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>
                      Turto perleidimo data.
                     </xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="AssetDisposal" type="SAFmonetaryType"
                               minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>
                      Turto nurašymo suma.
                     </xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="AssetDisposalDate" type="xs:date"
                               minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>
                      Turto nurašymo data.
                     </xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="BookValueBegin" type="SAFmonetaryType"
                               minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>Balansinė vertė atrankos pradžios dieną.</xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="DepreciationMethod"
                               type="SAFmiddle1textType" minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>
                      Taikytas tiesinis nusidėvėjimo skaičiavimo metodas
                      atrankos dieną(elemento reikšmė - „Tiesinis“).
                     </xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="DepreciationPercentage" type="xs:decimal"
                               minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>Nusidėvėjimo norma (procentais), taikyta
                                       metams ar mėnesiui.</xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="DepreciationForPeriod"
                               type="SAFmonetaryType">
                    <xs:annotation>
                     <xs:documentation>Bendra nusidėvėjimo suma per atrinktą
                                       laikotarpį.</xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="Appreciation" minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>Po perkainojimo gautas turto vertės
                                       padidėjimas arba sumažėjimas.</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                     <xs:sequence minOccurs="0">
                      <xs:element name="Appreciation" type="SAFmonetaryType"
                                  minOccurs="0">
                       <xs:annotation>
                        <xs:documentation>
                         Vertės padidėjimo arba sumažėjimo suma.
                        </xs:documentation>
                       </xs:annotation>
                      </xs:element>
                      <xs:element name="AppreciationDate" type="xs:date"
                                  minOccurs="0">
                       <xs:annotation>
                        <xs:documentation>
                         Turto perkainojimo data.
                        </xs:documentation>
                       </xs:annotation>
                      </xs:element>
                      <xs:element name="DepreciationMethod"
                                  type="SAFmiddle1textType" minOccurs="0">
                       <xs:annotation>
                        <xs:documentation>
                         Skaičiavimo metodas (standartinis arba nestandartinis).
                        </xs:documentation>
                       </xs:annotation>
                      </xs:element>
                      <xs:element name="DepreciationPercentage"
                                  type="xs:decimal" minOccurs="0">
                       <xs:annotation>
                        <xs:documentation>Nusidėvėjimo norma (procentais),
                                          taikyta metams ar mėnesiui.</xs:documentation>
                       </xs:annotation>
                      </xs:element>
                      <xs:element name="DepreciationForPeriod"
                                  type="SAFmonetaryType" minOccurs="0">
                       <xs:annotation>
                        <xs:documentation>Nusidėvėjimo suma per atrinktą
                                          laikotarpį.</xs:documentation>
                       </xs:annotation>
                      </xs:element>
                     </xs:sequence>
                    </xs:complexType>
                   </xs:element>
                   <xs:element name="ExtraordinaryDepreciationsForPeriod"
                               minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>Nestandartinis nusidėvėjimas per atrinktą
                                       laikotarpį.</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                     <xs:sequence>
                      <xs:element name="ExtraordinaryDepreciationForPeriod"
                                  maxOccurs="unbounded">
                       <xs:annotation>
                        <xs:documentation>Nestandartinis nusidėvėjimas per
                                          atrinktą laikotarpį.</xs:documentation>
                       </xs:annotation>
                       <xs:complexType>
                        <xs:sequence>
                         <xs:element name="ExtraordinaryDepreciationMethod"
                                     type="SAFmiddle1textType">
                          <xs:annotation>
                           <xs:documentation>
                            Taikytas nestandartinio nusidėvėjimo skaičiavimo
                            metodas (elementoreikšmė, atitinkanti metodo
                            pavadinimą – dvigubo balanso, produkcijos, metų
                            skaičiaus ar kiti).
                           </xs:documentation>
                          </xs:annotation>
                         </xs:element>
                         <xs:element name="ExtraordinaryDepreciationForPeriod"
                                     type="SAFmonetaryType">
                          <xs:annotation>
                           <xs:documentation>Pasirinkto laikotarpio bendra
                                             nusidėvėjimo suma.</xs:documentation>
                          </xs:annotation>
                         </xs:element>
                        </xs:sequence>
                       </xs:complexType>
                      </xs:element>
                     </xs:sequence>
                    </xs:complexType>
                   </xs:element>
                   <xs:element name="AccumulatedDepreciation"
                               type="SAFmonetaryType" minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>Bendra turto nusidėvėjimo suma.</xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="AccumulatedDepreciationOfAppreciation"
                               type="SAFmonetaryType" minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>
                      Bendra perkainavimo rezultato nusidėvėjimo suma.
                     </xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="BookValueEnd" type="SAFmonetaryType">
                    <xs:annotation>
                     <xs:documentation>Turto balansinė vertė atrankos pabaigos
                                       dieną.</xs:documentation>
                    </xs:annotation>
                   </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:element name="Owners" minOccurs="0">
        <xs:annotation>
         <xs:documentation>
          Subjekto savininkai, akcininkai.
         </xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="OwnerID" type="SAFmiddle1textType">
           <xs:annotation>
            <xs:documentation>
             Savininkų, akcininkų unikalus identifikacinis kodas (Juridinių
             asmenų registro kodas arba kodas užsienio valstybėje, Fizinio
             asmens kodas).
            </xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="OwnerName" type="SAFmiddle2textType">
           <xs:annotation>
            <xs:documentation>
             Savininko, akcininko pavadinimas, arba vardas, pavardė.
            </xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="AccountID" type="SAFmiddle2textType">
           <xs:annotation>
            <xs:documentation>Didžiosios knygos sąskaitos kodas. Galima įtraukti
                              subsąskaitų numerius. Gali apimti daug skirtingų
                              lygių tam, kad būtų galima kuo geriau
                              identifikuoti sąskaitą. Gali apimti išlaidų
                              centrus, tokius kaip: įmonė, padalinys, regionas,
                              grupė ir filialas/departamentas.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="Address" type="AddressStructure" minOccurs="0">
           <xs:annotation>
            <xs:documentation>Adresas.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="SharesQuantity" type="SAFquantityType"
                      minOccurs="0">
           <xs:annotation>
            <xs:documentation>
             Savininko, akcininko valdomų dalių, akcijų kiekis, vnt.
            </xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="SharesAmount" type="SAFmonetaryType" minOccurs="0">
           <xs:annotation>
            <xs:documentation>
             Savininko, akcininko valdomų dalių, akcijų suma.
            </xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="SharesType" type="SAFmiddle2textType" minOccurs="0">
           <xs:annotation>
            <xs:documentation>
             Savininko, akcininko valdomų dalių, akcijų rūšis (paprastosios,
             privilegijuotosios ir kt.).
            </xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="SharesAcquisitionDate" type="xs:date" minOccurs="0">
           <xs:annotation>
            <xs:documentation>
             Savininko, akcininko dalių, akcijų įsigijimo data.
            </xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="SharesTransfersDate" type="xs:date" minOccurs="0">
           <xs:annotation>
            <xs:documentation>
             Savininko, akcininko dalių, akcijų perleidimo data.
            </xs:documentation>
           </xs:annotation>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
      </xs:sequence>
     </xs:complexType>
    </xs:element>
    <xs:element name="GeneralLedgerEntries" minOccurs="0">
     <xs:annotation>
      <xs:documentation>Didžiosios knygos įrašai.</xs:documentation>
     </xs:annotation>
     <xs:complexType>
      <xs:sequence>
       <xs:element name="NumberOfEntries" type="xs:nonNegativeInteger">
        <xs:annotation>
         <xs:documentation>Įrašų skaičius.</xs:documentation>
        </xs:annotation>
       </xs:element>
       <xs:element name="TotalDebit" type="SAFmonetaryType">
        <xs:annotation>
         <xs:documentation>Bendra debeto suma, įvertinta antraštėje nurodyta
                           valiuta.</xs:documentation>
        </xs:annotation>
       </xs:element>
       <xs:element name="TotalCredit" type="SAFmonetaryType">
        <xs:annotation>
         <xs:documentation>Bendra kredito suma, įvertinta antraštėje nurodyta
                           valiuta.</xs:documentation>
        </xs:annotation>
       </xs:element>
       <xs:element name="Journal" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
         <xs:documentation>Apskaitos registras/žurnalas.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="JournalID" type="SAFshorttextType">
           <xs:annotation>
            <xs:documentation>Apskaitos registrą/žurnalą identifikuojantis
                              numeris/kodas.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="Description" type="SAFlongtextType">
           <xs:annotation>
            <xs:documentation>
             Apskaitos registro/žurnalo aprašymas.
            </xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="Type" type="SAFcodeType">
           <xs:annotation>
            <xs:documentation>Nurodoma, kokiai apskaitos registrų/žurnalų grupei
                              priklauso šis žurnalas.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="Transaction" minOccurs="0" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Ūkinė operacija, ūkinis įvykis.</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:sequence>
             <xs:element name="TransactionID" type="SAFmiddle2textType">
              <xs:annotation>
               <xs:documentation>
                Unikalus numeris, kuris priskirtas ūkinei operacijai/įvykiui ir
                kuris gali būti grindžiamas viena ar keliomis serijomis.
               </xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Period" type="xs:nonNegativeInteger">
              <xs:annotation>
               <xs:documentation>Ataskaitinis laikotarpis.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="PeriodYear">
              <xs:annotation>
               <xs:documentation>
                Pateikiami ataskaitinio laikotarpio metai, kada įvyko ūkinė
                operacija ar ūkinis įvykis, t. y. jau konkrečiai nurodoma, už
                kuriuos metus pateikiamas ataskaitinis laikotarpis, per kurį
                įvyko ūkinis įvykis.
               </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
               <xs:restriction base="xs:nonNegativeInteger">
                <xs:minInclusive value="1970"/>
                <xs:maxInclusive value="2100"/>
               </xs:restriction>
              </xs:simpleType>
             </xs:element>
             <xs:element name="TransactionDate" type="xs:date">
              <xs:annotation>
               <xs:documentation>Data, kada įvyko konkreti ūkinė operacija ar
                                 įvykis.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Description" type="SAFlongtextType">
              <xs:annotation>
               <xs:documentation>Žurnale įregistruoto ūkinės operacijos ar
                                 ūkinio įvykio aprašymas (turinys).</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="SystemEntryDate" type="xs:dateTime">
              <xs:annotation>
               <xs:documentation>
                Data ir laikas, kada sistemoje užfiksuojama ūkinė operacija ar
                ūkinis įvykis.
               </xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="GLPostingDate" type="xs:date">
              <xs:annotation>
               <xs:documentation>Data, kada Didžiojoje knygoje fiksuojamas
                                 ūkinės operacijos ar ūkinio įvykio įrašas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="CustomerID" type="SAFmiddle2textType">
              <xs:annotation>
               <xs:documentation>Unikalus pirkėjo, debitoriaus numeris subjekto
                                 apskaitos sistemoje.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="SupplierID" type="SAFmiddle2textType">
              <xs:annotation>
               <xs:documentation>Unikalus tiekėjo, kreditoriaus numeris subjekto
                                 apskaitos sistemoje.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="SystemID" type="SAFshorttextType" minOccurs="0">
              <xs:annotation>
               <xs:documentation>Sistemos automatiškai sukurtas unikalus
                                 kodas/numeris konkrečiam dokumentui, susijusiam
                                 su ūkiniu įvykiu.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Line" maxOccurs="unbounded">
              <xs:annotation>
               <xs:documentation>Eilutė/įrašas.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="RecordID" type="SAFshorttextType">
                 <xs:annotation>
                  <xs:documentation>Įrašo Identifikavimo kodas, nurodantis,
                                    kuriame žurnale įrašas užfiksuotas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="AccountID" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Didžiosios knygos sąskaitos kodas. Galima
                                    įtraukti subsąskaitų numerius. Gali apimti
                                    daug skirtingų lygių tam, kad būtų galima
                                    kuo geriau identifikuoti sąskaitą. Gali
                                    apimti išlaidų centrus, tokius kaip: įmonė,
                                    padalinys, regionas, grupė ir
                                    filialas/departamentas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="Analysis" type="AnalysisStructure"
                            minOccurs="0" maxOccurs="unbounded">
                 <xs:annotation>
                  <xs:documentation>Didžiosios knygos analizės kodai.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="SourceDocumentID" type="SAFmiddle1textType"
                            minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>Pirmino dokumento numeris, kuris atitinka
                                    konkrečią eilutę/įrašą.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="CustomerID" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Unikalus pirkėjo, debitoriaus numeris
                                    subjekto apskaitos sistemoje.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="SupplierID" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Unikalus tiekėjo, kreditoriaus numeris
                                    subjekto apskaitos sistemoje.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="Description" type="SAFlongtextType">
                 <xs:annotation>
                  <xs:documentation>Registro/žurnalo eilutės aprašymas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:choice>
                 <xs:element name="DebitAmount" type="AmountStructure">
                  <xs:annotation>
                   <xs:documentation>
                    Ūkinės operacijos ar ūkinio įvykio debeto suma.
                   </xs:documentation>
                  </xs:annotation>
                 </xs:element>
                 <xs:element name="CreditAmount" type="AmountStructure">
                  <xs:annotation>
                   <xs:documentation>
                    Ūkinės operacijos ar ūkinio įvykio kredito suma.
                   </xs:documentation>
                  </xs:annotation>
                 </xs:element>
                </xs:choice>
                <xs:element name="TaxInformation" type="TaxInformationStructure"
                            minOccurs="0" maxOccurs="unbounded">
                 <xs:annotation>
                  <xs:documentation>Informacija apie mokesčius.</xs:documentation>
                 </xs:annotation>
                </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:element name="SourceDocuments" minOccurs="0">
     <xs:annotation>
      <xs:documentation>Pirminių dokumentų duomenys.</xs:documentation>
     </xs:annotation>
     <xs:complexType>
      <xs:sequence>
       <xs:element name="SalesInvoices" minOccurs="0">
        <xs:annotation>
         <xs:documentation>
          Pardavimo sąskaitos faktūros.
         </xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="NumberOfEntries" type="xs:nonNegativeInteger">
           <xs:annotation>
            <xs:documentation>Įrašų skaičius.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="TotalDebit" type="SAFmonetaryType">
           <xs:annotation>
            <xs:documentation>Bendra debeto suma, įvertinta antraštėje nurodyta
                              valiuta.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="TotalCredit" type="SAFmonetaryType">
           <xs:annotation>
            <xs:documentation>Bendra kredito suma, įvertinta antraštėje nurodyta
                              valiuta.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="Invoice" type="InvoiceStructure"
                      maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Sąskaita faktūra, PVM sąskaita faktūra.</xs:documentation>
           </xs:annotation>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
       <xs:element name="PurchaseInvoices" minOccurs="0">
        <xs:annotation>
         <xs:documentation>Pirkimų (įsigijimų) sąskaitos.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="NumberOfEntries" type="xs:nonNegativeInteger">
           <xs:annotation>
            <xs:documentation>Įrašų skaičius.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="TotalDebit" type="SAFmonetaryType">
           <xs:annotation>
            <xs:documentation>Bendra debeto suma, įvertinta antraštėje nurodyta
                              valiuta.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="TotalCredit" type="SAFmonetaryType">
           <xs:annotation>
            <xs:documentation>Bendra kredito suma, įvertinta antraštėje nurodyta
                              valiuta.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="Invoice" type="InvoiceStructure"
                      maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Sąskaita faktūra, PVM sąskaita faktūra.</xs:documentation>
           </xs:annotation>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
       <xs:element name="Payments" minOccurs="0">
        <xs:annotation>
         <xs:documentation>Mokėjimai.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="NumberOfEntries" type="xs:nonNegativeInteger">
           <xs:annotation>
            <xs:documentation>Įrašų skaičius.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="TotalDebit" type="SAFmonetaryType">
           <xs:annotation>
            <xs:documentation>Bendra debeto suma, įvertinta antraštėje nurodyta
                              valiuta.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="TotalCredit" type="SAFmonetaryType">
           <xs:annotation>
            <xs:documentation>Bendra kredito suma, įvertinta antraštėje nurodyta
                              valiuta.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="Payment" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Mokėjimas.</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:sequence>
             <xs:element name="PaymentRefNo" type="SAFmiddle1textType">
              <xs:annotation>
               <xs:documentation>Unikalus mokėjimo indentifikavimo numeris.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="PeriodYear" minOccurs="0">
              <xs:annotation>
               <xs:documentation>
                Pateikiami ataskaitinio laikotarpio metai, kada įvyko ūkinė
                operacija ar ūkinis įvykis, t. y. jau konkrečiai nurodoma, už
                kuriuos metus pateikiamas ataskaitinis laikotarpis, per kurį
                įvyko ūkinis įvykis.
               </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
               <xs:restriction base="xs:nonNegativeInteger">
                <xs:minInclusive value="1970"/>
                <xs:maxInclusive value="2100"/>
               </xs:restriction>
              </xs:simpleType>
             </xs:element>
             <xs:element name="TransactionID" type="SAFmiddle2textType">
              <xs:annotation>
               <xs:documentation>Unikalus numeris, kuris priskirtas ūkinei
                                 operacijai/ įvykiui ir kuris gali būti
                                 grindžiamas viena ar keliomis serijomis.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="TransactionDate" type="xs:date">
              <xs:annotation>
               <xs:documentation>Data, kada įvyko konkreti ūkinė operacija ar
                                 įvykis.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="PaymentMethod" type="SAFcodeType" minOccurs="0">
              <xs:annotation>
               <xs:documentation>
                Elemento reikšmės (banko pavedimas, kasos pajamų orderis, kasos
                išlaidų orderis, kasos kvitas, čekis, užskaita ir kita).
               </xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="BankAccount" type="BankAccountStructure"
                         minOccurs="0">
              <xs:annotation>
               <xs:documentation>Banko sąskaita.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Description" type="SAFlongtextType">
              <xs:annotation>
               <xs:documentation>Mokėjimo dokumento aprašymas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="SystemID" type="SAFmiddle1textType"
                         minOccurs="0">
              <xs:annotation>
               <xs:documentation>Sistemos automatiškai sukurtas unikalus
                                 kodas/numeris konkrečiam dokumentui, susijusiam
                                 su ūkiniu įvykiu.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Line" maxOccurs="unbounded">
              <xs:annotation>
               <xs:documentation>Mokėjimo eilutės/įrašo duomenys.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="LineNumber" type="SAFshorttextType">
                 <xs:annotation>
                  <xs:documentation>Mokėjimo eilutės/įrašo numeris.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="SourceDocumentID" type="SAFmiddle1textType"
                            minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>Pirminio dokumento numeris, kuris atitinka
                                    konkrečią eilutę/įrašą.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="AccountID" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Didžiosios knygos sąskaitos kodas. Galima
                                    įtraukti subsąskaitų numerius. Gali apimti
                                    daug skirtingų lygių tam, kad būtų galima
                                    kuo geriau identifikuoti sąskaitą. Gali
                                    apimti išlaidų centrus, tokius kaip: įmonė,
                                    padalinys, regionas, grupė ir
                                    filialas/departamentas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="Analysis" type="AnalysisStructure"
                            minOccurs="0" maxOccurs="unbounded">
                 <xs:annotation>
                  <xs:documentation>Didžiosios knygos analizės kodai.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="CustomerID" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>
                   Unikalus pirkėjo, debitoriaus numeris subjekto apskaitos
                   sistemoje.
                  </xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="SupplierID" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>
                   Unikalus tiekėjo, kreditoriaus numeris subjekto apskaitos
                   sistemoje.
                  </xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="TaxPointDate" type="xs:date" minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>Nurodyta apmokestinimo data, jei data
                                    nenurodyta, tuomet sąskaitos data.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="Description" type="SAFlongtextType"
                            minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>
                   Apibūdinimas, apmokėjimo pagrindas (sąskaita faktūra, avanso
                   apyskaita, darbo užmokesčio žiniaraštis, buhalterinė pažyma
                   ir pan.).
                  </xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="DebitCreditIndicator">
                 <xs:annotation>
                  <xs:documentation>Nuoroda identifikuojanti eilutės sumos
                                    požymį (D - debetą/K - kreditą). Įrašas
                                    privalo atitikti įrašą, randamą didžiojoje
                                    knygoje. Pavyzdžiui, grąžinimas gali būti
                                    nurodytas minusine suma (kontrarinėje
                                    sąskaitoje).</xs:documentation>
                 </xs:annotation>
                 <xs:simpleType>
                  <xs:restriction base="SAFcodeType">
                   <xs:enumeration value="D"/>
                   <xs:enumeration value="K"/>
                  </xs:restriction>
                 </xs:simpleType>
                </xs:element>
                <xs:element name="PaymentLineAmount" type="AmountStructure">
                 <xs:annotation>
                  <xs:documentation>Mokėjimo eilutės suma.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="TaxInformation" type="TaxInformationStructure"
                            minOccurs="0" maxOccurs="unbounded">
                 <xs:annotation>
                  <xs:documentation>Informacija apie mokesčius.</xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:sequence>
              </xs:complexType>
             </xs:element>
             <xs:element name="Settlement" minOccurs="0">
              <xs:annotation>
               <xs:documentation>Susitarimai dėl atsiskaitymo.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="SettlementDiscount" type="SAFmiddle1textType"
                            minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>Atsiskaitymo nuolaidos (diskontai ir kt.).</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="SettlementAmount" type="AmountStructure"
                            minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>Atsiskaitymo suma.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="SettlementDate" type="xs:date" minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>Atsiskaitymo data.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="PaymentMechanism" type="SAFcodeType"
                            minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>
                   Mokėjimo būdas (elemento reikšmės - grynaisiais,
                   negrynaisiais, užskaita).
                  </xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:sequence>
              </xs:complexType>
             </xs:element>
             <xs:element name="DocumentTotals" minOccurs="0">
              <xs:annotation>
               <xs:documentation>Dokumento suminiai rezultatai.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="TaxInformationTotals"
                            type="TaxInformationStructure" minOccurs="0"
                            maxOccurs="unbounded">
                 <xs:annotation>
                  <xs:documentation>Apskaičiuotų mokesčių suma, apibendrinama
                                    pagal mokesčių tipus/mokesčių kodus.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="NetTotal" type="SAFmonetaryType"
                            minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>
                   Bendra mokėjimų vertė, neįtraukiant mokesčių ir gabenimo
                   išlaidų.
                  </xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="GrossTotal" type="SAFmonetaryType">
                 <xs:annotation>
                  <xs:documentation>Bendra suma, įskaitant mokesčius ir gabenimo
                                    išlaidas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:sequence>
              </xs:complexType>
             </xs:element>
            </xs:sequence>
           </xs:complexType>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
       <xs:element name="MovementOfGoods" minOccurs="0">
        <xs:annotation>
         <xs:documentation>Informacija apie prekių judėjimą.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="NumberOfMovementLines" type="xs:nonNegativeInteger">
           <xs:annotation>
            <xs:documentation>Prekių judėjimo eilučių skaičius per pasirinktą
                              laikotarpį.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="TotalQuantityReceived" type="SAFquantityType">
           <xs:annotation>
            <xs:documentation>Bendras gautų prekių skaičius.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="TotalQuantityIssued" type="SAFquantityType">
           <xs:annotation>
            <xs:documentation>Bendras išduotų prekių skaičius.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="StockMovement" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Atsargų judėjimas.</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:sequence>
             <xs:element name="MovementReference" type="SAFmiddle1textType">
              <xs:annotation>
               <xs:documentation>Unikali judėjimo (gabenimo) nuoroda.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="MovementDate" type="xs:date">
              <xs:annotation>
               <xs:documentation>Atsargų judėjimo dokumento data.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="MovementPostingDate" type="xs:date"
                         minOccurs="0">
              <xs:annotation>
               <xs:documentation>
                Judėjimo dokumento apskaitos data (gali skirtis nuo atsargų
                judėjimo dokumento datos).
               </xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="TaxPointDate" type="xs:date" minOccurs="0">
              <xs:annotation>
               <xs:documentation>Nurodyta apmokestinimo data, jei data
                                 nenurodyta, tuomet sąskaitos data.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="MovementType" type="SAFcodeType">
              <xs:annotation>
               <xs:documentation>Nustatyti judėjimo rūšį (pobūdį) ar judėjimo
                                 liniją. Pvz., pardavimas, pirkimas, gamyba.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="SystemID" type="SAFmiddle1textType"
                         minOccurs="0">
              <xs:annotation>
               <xs:documentation>Sistemos automatiškai sukurtas unikalus
                                 kodas/numeris konkrečiam dokumentui, susijusiam
                                 su ūkiniu įvykiu.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="DocumentReference" minOccurs="0">
              <xs:annotation>
               <xs:documentation>Dokumento duomenys.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="DocumentType" type="SAFshorttextType">
                 <xs:annotation>
                  <xs:documentation>Dokumento tipas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="DocumentNumber" type="SAFmiddle1textType">
                 <xs:annotation>
                  <xs:documentation>Dokumento numeris.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="DocumentLine" type="SAFshorttextType"
                            minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>Dokumento eilutės numeris.</xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:sequence>
              </xs:complexType>
             </xs:element>
             <xs:element name="Line" maxOccurs="unbounded">
              <xs:annotation>
               <xs:documentation>Dokumento eilutė/įrašas.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="LineNumber" type="SAFshorttextType">
                 <xs:annotation>
                  <xs:documentation>Eilutės/įrašo numeris.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="AccountID" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Didžiosios knygos sąskaitos kodas. Galima
                                    įtraukti subsąskaitų numerius. Gali apimti
                                    daug skirtingų lygių tam, kad būtų galima
                                    kuo geriau identifikuoti sąskaitą. Gali
                                    apimti išlaidų centrus, tokius kaip: įmonė,
                                    padalinys, regionas, grupė ir
                                    filialas/departamentas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="TransactionID" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Unikalus numeris, kuris priskirtas ūkinei
                                    operacijai/ įvykiui ir kuris gali būti
                                    grindžiamas viena ar keliomis serijomis.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="CustomerID" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Unikalus pirkėjo, kliento numeris subjekto
                                    apskaitos sistemoje.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="SupplierID" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Tiekėjo unikalus kodas subjekto apskaitos
                                    sistemoje.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="ShipTo" type="ShippingPointStructure"
                            minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>Pristatymo duomenys.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="ShipFrom" type="ShippingPointStructure"
                            minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>Išsiuntimo duomenys.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="ProductCode" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Prekės/paslaugos kodas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="Quantity" type="SAFquantityType">
                 <xs:annotation>
                  <xs:documentation>Tiekiamų prekių ar teikiamų paslaugų kiekis.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:sequence>
                 <xs:element name="UnitOfMeasure" type="SAFcodeType">
                  <xs:annotation>
                   <xs:documentation>Matavimo vieneto kiekis, pvz., 12 vnt.
                                     pakuotė.</xs:documentation>
                  </xs:annotation>
                 </xs:element>
                 <xs:element name="UOMToUOMPhysicalStockConversionFactor"
                             type="xs:decimal">
                  <xs:annotation>
                   <xs:documentation>Matavimo vienetų konversijos koeficientas,
                                     keičiant iš standartinio į fizinį.</xs:documentation>
                  </xs:annotation>
                 </xs:element>
                </xs:sequence>
                <xs:element name="BookValue" type="SAFmonetaryType">
                 <xs:annotation>
                  <xs:documentation>Balansinė vertė.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="MovementSubType" type="SAFcodeType">
                 <xs:annotation>
                  <xs:documentation>Detalesnis prekių judėjimo/būklės
                                    apibūdinimas, pvz., prekės gaminamos, baigta
                                    gamyba, netektis ir pan.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="MovementComments" type="SAFlongtextType"
                            minOccurs="0">
                 <xs:annotation>
                  <xs:documentation>Prekių judėjimo aprašymas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="TaxInformation" type="TaxInformationStructure"
                            minOccurs="0" maxOccurs="unbounded">
                 <xs:annotation>
                  <xs:documentation>Informacija apie mokesčius.</xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:sequence>
              </xs:complexType>
             </xs:element>
            </xs:sequence>
           </xs:complexType>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>
       <xs:element name="AssetTransactions" minOccurs="0">
        <xs:annotation>
         <xs:documentation>Ūkinės operacijos ar ūkiniai įvykiai dėl turto
                           (materialaus, nematerialaus ir finansinio turto).</xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="NumberOfAssetTransactions"
                      type="xs:nonNegativeInteger">
           <xs:annotation>
            <xs:documentation>Ūkinių operacijų ir ūkinių įvykių dėl turto
                              (materialaus, nematerialaus ir finansinio turto)
                              skaičius.</xs:documentation>
           </xs:annotation>
          </xs:element>
          <xs:element name="AssetTransaction" maxOccurs="unbounded">
           <xs:annotation>
            <xs:documentation>Ūkinė operacija ar ūkinis įvykis.</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:sequence>
             <xs:element name="AssetTransactionID" type="SAFmiddle2textType">
              <xs:annotation>
               <xs:documentation>Ūkinės operacijos ar ūkinio įvykio unikalus
                                 kodas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="AssetID" type="SAFmiddle1textType">
              <xs:annotation>
               <xs:documentation>Unikalus turto identifikacinis kodas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="AssetTransactionType" type="SAFcodeType">
              <xs:annotation>
               <xs:documentation>Ūkinės operacijos ar ūkinio įvykio tipas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Description" type="SAFlongtextType"
                         minOccurs="0">
              <xs:annotation>
               <xs:documentation>Aprašymas.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="AssetTransactionDate" type="xs:date">
              <xs:annotation>
               <xs:documentation>Data, kada įvyko konkreti ūkinė operacija ar
                                 įvykis.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="Supplier" minOccurs="0">
              <xs:annotation>
               <xs:documentation>Tiekėjas.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="SupplierName" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Tiekėjo pavadinimas.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="SupplierID" type="SAFmiddle2textType">
                 <xs:annotation>
                  <xs:documentation>Tiekėjo unikalus kodas subjekto apskaitos
                                    sistemoje.</xs:documentation>
                 </xs:annotation>
                </xs:element>
                <xs:element name="PostalAddress" type="AddressStructure">
                 <xs:annotation>
                  <xs:documentation>Informacija apie turto tiekėjo adresą.</xs:documentation>
                 </xs:annotation>
                </xs:element>
               </xs:sequence>
              </xs:complexType>
             </xs:element>
             <xs:element name="TransactionID" type="SAFmiddle2textType">
              <xs:annotation>
               <xs:documentation>Unikalus numeris, kuris priskirtas ūkinei
                                 operacijai/įvykiui ir kuris gali būti
                                 grindžiamas viena ar keliomis serijomis.</xs:documentation>
              </xs:annotation>
             </xs:element>
             <xs:element name="AssetTransactionValuations">
              <xs:annotation>
               <xs:documentation>Ūkinės operacijos ar ūkinio įvykio vertės.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:sequence>
                <xs:element name="AssetTransactionValuation"
                            maxOccurs="unbounded">
                 <xs:annotation>
                  <xs:documentation>Ūkinės operacijos ar ūkinio įvykio vertė.</xs:documentation>
                 </xs:annotation>
                 <xs:complexType>
                  <xs:sequence>
                   <xs:element name="AssetValuationType" type="SAFshorttextType"
                               minOccurs="0">
                    <xs:annotation>
                     <xs:documentation>Turto įvertinimo būdas (įsigijimo
                                       savikaina, tikroji vertė ir kt.).</xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="AcquisitionAndProductionCostsOnTransaction"
                               type="SAFmonetaryType">
                    <xs:annotation>
                     <xs:documentation>Turto įsigijimo (pasigaminimo) savikaina
                                       ūkinės operacijos ar ūkinio įvykio datai.</xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="BookValueOnTransaction"
                               type="SAFmonetaryType">
                    <xs:annotation>
                     <xs:documentation>Turto balansinė vertė (suma) ūkinės
                                       operacijos ar ūkinio įvykio datai.</xs:documentation>
                    </xs:annotation>
                   </xs:element>
                   <xs:element name="AssetTransactionAmount"
                               type="SAFmonetaryType">
                    <xs:annotation>
                     <xs:documentation>Ūkinės operacijos ar ūkinio įvykio suma.</xs:documentation>
                    </xs:annotation>
                   </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:sequence>
     </xs:complexType>
    </xs:element>
   </xs:sequence>
  </xs:complexType>
  <xs:key name="KeyGeneralLedgerAccount">
   <xs:selector xpath="MasterFiles/GeneralLedgerAccounts/Account"/>
   <xs:field xpath="AccountID"/>
  </xs:key>
  <xs:key name="KeySupplier">
   <xs:selector xpath="MasterFiles/Suppliers/Supplier"/>
   <xs:field xpath="SupplierID"/>
  </xs:key>
  <xs:key name="KeyCustomer">
   <xs:selector xpath="MasterFiles/Customers/Customer"/>
   <xs:field xpath="CustomerID"/>
  </xs:key>
  <xs:key name="KeyTaxType">
   <xs:selector xpath="MasterFiles/TaxTable/TaxTableEntry"/>
   <xs:field xpath="TaxType"/>
  </xs:key>
  <xs:key name="KeyUnitOfMeasure">
   <xs:selector xpath="MasterFiles/UOMTable/UOMTableEntry"/>
   <xs:field xpath="UnitOfMeasure"/>
  </xs:key>
  <xs:key name="KeyMovementType">
   <xs:selector xpath="MasterFiles/MovementTypeTable/MovementTypeTableEntry"/>
   <xs:field xpath="MovementType"/>
  </xs:key>
  <xs:key name="KeyProductCode">
   <xs:selector xpath="MasterFiles/Products/Product"/>
   <xs:field xpath="ProductCode"/>
  </xs:key>
  <xs:key name="KeyOwner">
   <xs:selector xpath="MasterFiles/Owners"/>
   <xs:field xpath="OwnerID"/>
  </xs:key>
  <xs:key name="KeyAsset">
   <xs:selector xpath="MasterFiles/Assets/Asset"/>
   <xs:field xpath="AssetID"/>
  </xs:key>
  <xs:key name="KeyMovementReference">
   <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement"/>
   <xs:field xpath="MovementReference"/>
  </xs:key>
  <xs:key name="KeyTransactionReference">
   <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction"/>
   <xs:field xpath="TransactionID"/>
  </xs:key>
  <xs:key name="KeyTaxCode">
   <xs:selector xpath="MasterFiles/TaxTable/TaxTableEntry/TaxCodeDetails"/>
   <xs:field xpath="TaxCode"/>
  </xs:key>
  <xs:key name="KeyAnalysisType">
   <xs:selector xpath="MasterFiles/AnalysisTypeTable/AnalysisTypeTableEntry"/>
   <xs:field xpath="AnalysisType"/>
  </xs:key>
  <xs:key name="KeyAnalysisID">
   <xs:selector xpath="MasterFiles/AnalysisTypeTable/AnalysisTypeTableEntry"/>
   <xs:field xpath="AnalysisID"/>
  </xs:key>
  <xs:keyref name="RefCustomerAccount" refer="KeyGeneralLedgerAccount">
   <xs:selector xpath="MasterFiles/Customers/Customer"/>
   <xs:field xpath="AccountID"/>
  </xs:keyref>
  <xs:keyref name="RefSupplierAccount" refer="KeyGeneralLedgerAccount">
   <xs:selector xpath="MasterFiles/Suppliers/Supplier"/>
   <xs:field xpath="AccountID"/>
  </xs:keyref>
  <xs:keyref name="RefOwnerAccount" refer="KeyGeneralLedgerAccount">
   <xs:selector xpath="MasterFiles/Owners"/>
   <xs:field xpath="AccountID"/>
  </xs:keyref>
  <xs:keyref name="RefAssetAccount" refer="KeyGeneralLedgerAccount">
   <xs:selector xpath="MasterFiles/Assets/Asset"/>
   <xs:field xpath="AccountID"/>
  </xs:keyref>
  <xs:keyref name="RefTransactionLineAccount" refer="KeyGeneralLedgerAccount">
   <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line"/>
   <xs:field xpath="AccountID"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceAccount" refer="KeyGeneralLedgerAccount">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice"/>
   <xs:field xpath="AccountID"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceLineAccount" refer="KeyGeneralLedgerAccount">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line"/>
   <xs:field xpath="AccountID"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvoiceAccount" refer="KeyGeneralLedgerAccount">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice"/>
   <xs:field xpath="AccountID"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvoiceLineAccount"
             refer="KeyGeneralLedgerAccount">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line"/>
   <xs:field xpath="AccountID"/>
  </xs:keyref>
  <xs:keyref name="RefPaymentLineAccount" refer="KeyGeneralLedgerAccount">
   <xs:selector xpath="SourceDocuments/Payments/Payment/Line"/>
   <xs:field xpath="AccountID"/>
  </xs:keyref>
  <xs:keyref name="RefStockMovementLineAccount" refer="KeyGeneralLedgerAccount">
   <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
   <xs:field xpath="AccountID"/>
  </xs:keyref>
  <xs:keyref name="RefAssetSupplier" refer="KeySupplier">
   <xs:selector xpath="MasterFiles/Assets/Asset/Supplier"/>
   <xs:field xpath="SupplierID"/>
  </xs:keyref>
  <xs:keyref name="RefGLTransactionSupplier" refer="KeySupplier">
   <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction"/>
   <xs:field xpath="SupplierID"/>
  </xs:keyref>
  <xs:keyref name="RefGLTransactionLineSupplier" refer="KeySupplier">
   <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line"/>
   <xs:field xpath="SupplierID"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceSupplier" refer="KeySupplier">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/SupplierInfo"/>
   <xs:field xpath="SupplierID"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvoiceSupplier" refer="KeySupplier">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/SupplierInfo"/>
   <xs:field xpath="SupplierID"/>
  </xs:keyref>
  <xs:keyref name="RefPaymenLineSupplier" refer="KeySupplier">
   <xs:selector xpath="SourceDocuments/Payments/Payment/Line"/>
   <xs:field xpath="SupplierID"/>
  </xs:keyref>
  <xs:keyref name="RefStockMovementLineSupplier" refer="KeySupplier">
   <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
   <xs:field xpath="SupplierID"/>
  </xs:keyref>
  <xs:keyref name="RefAssetTransactionSupplier" refer="KeySupplier">
   <xs:selector xpath="SourceDocuments/AssetTransactions/AssetTransaction/Supplier"/>
   <xs:field xpath="SupplierID"/>
  </xs:keyref>
  <xs:keyref name="RefGLTransactionCustomer" refer="KeyCustomer">
   <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction"/>
   <xs:field xpath="CustomerID"/>
  </xs:keyref>
  <xs:keyref name="RefGLTransactionLineCustomer" refer="KeyCustomer">
   <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line"/>
   <xs:field xpath="CustomerID"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceCustomer" refer="KeyCustomer">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/CustomerInfo"/>
   <xs:field xpath="CustomerID"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvoiceCustomer" refer="KeyCustomer">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/CustomerInfo"/>
   <xs:field xpath="CustomerID"/>
  </xs:keyref>
  <xs:keyref name="RefPaymentLineCustomer" refer="KeyCustomer">
   <xs:selector xpath="SourceDocuments/Payments/Payment/Line"/>
   <xs:field xpath="CustomerID"/>
  </xs:keyref>
  <xs:keyref name="RefStockMovementLineCustomer" refer="KeyCustomer">
   <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
   <xs:field xpath="CustomerID"/>
  </xs:keyref>
  <xs:keyref name="RefRegistrationTaxType" refer="KeyTaxType">
   <xs:selector xpath="Header/Company/TaxRegistration"/>
   <xs:field xpath="TaxType"/>
  </xs:keyref>
  <xs:keyref name="RefCustomerTaxType" refer="KeyTaxType">
   <xs:selector xpath="MasterFiles/Customers/Customer/TaxRegistration"/>
   <xs:field xpath="TaxType"/>
  </xs:keyref>
  <xs:keyref name="RefSupplierTaxType" refer="KeyTaxType">
   <xs:selector xpath="MasterFiles/Suppliers/Supplier/TaxRegistration"/>
   <xs:field xpath="TaxType"/>
  </xs:keyref>
  <xs:keyref name="RefProductTaxType" refer="KeyTaxType">
   <xs:selector xpath="MasterFiles/Products/Product/Tax"/>
   <xs:field xpath="TaxType"/>
  </xs:keyref>
  <xs:keyref name="RefGLTransactionTaxType" refer="KeyTaxType">
   <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line/TaxInformation"/>
   <xs:field xpath="TaxType"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvoiceLineTaxType" refer="KeyTaxType">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line/TaxInformation"/>
   <xs:field xpath="TaxType"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvoiceTotalsTaxType" refer="KeyTaxType">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/DocumentTotals/TaxInformationTotals"/>
   <xs:field xpath="TaxType"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceLineTaxType" refer="KeyTaxType">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line/TaxInformation"/>
   <xs:field xpath="TaxType"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceTotalsTaxType" refer="KeyTaxType">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/DocumentTotals/TaxInformationTotals"/>
   <xs:field xpath="TaxType"/>
  </xs:keyref>
  <xs:keyref name="RefPaymentLineTaxType" refer="KeyTaxType">
   <xs:selector xpath="SourceDocuments/Payments/Payment/Line/TaxInformation"/>
   <xs:field xpath="TaxType"/>
  </xs:keyref>
  <xs:keyref name="RefPaymentTotalsTaxType" refer="KeyTaxType">
   <xs:selector xpath="SourceDocuments/Payments/Payment/Line/TaxInformation"/>
   <xs:field xpath="TaxType"/>
  </xs:keyref>
  <xs:keyref name="RefStockMovementLineTaxType" refer="KeyTaxType">
   <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line/TaxInformation"/>
   <xs:field xpath="TaxType"/>
  </xs:keyref>
  <xs:keyref name="RefProductUOMBase" refer="KeyUnitOfMeasure">
   <xs:selector xpath="MasterFiles/Products/Product"/>
   <xs:field xpath="UOMBase"/>
  </xs:keyref>
  <xs:keyref name="RefProductUOMStandard" refer="KeyUnitOfMeasure">
   <xs:selector xpath="MasterFiles/Products/Product"/>
   <xs:field xpath="UOMStandard"/>
  </xs:keyref>
  <xs:keyref name="RefUOMPhysicalStock" refer="KeyUnitOfMeasure">
   <xs:selector xpath="MasterFiles/PhysicalStock/PhysicalStockEntry"/>
   <xs:field xpath="UOMPhysicalStock"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceLineUOM" refer="KeyUnitOfMeasure">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line"/>
   <xs:field xpath="InvoiceUOM"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvoiceLineUOM" refer="KeyUnitOfMeasure">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line"/>
   <xs:field xpath="InvoiceUOM"/>
  </xs:keyref>
  <xs:keyref name="RefStockMovementUOM" refer="KeyUnitOfMeasure">
   <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
   <xs:field xpath="UnitOfMeasure"/>
  </xs:keyref>
  <xs:keyref name="RefStockMovementType" refer="KeyMovementType">
   <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement"/>
   <xs:field xpath="MovementType"/>
  </xs:keyref>
  <xs:keyref name="RefStockMovementLineType" refer="KeyMovementType">
   <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
   <xs:field xpath="MovementSubType"/>
  </xs:keyref>
  <xs:keyref name="RefPhysicalStockProductCode" refer="KeyProductCode">
   <xs:selector xpath="MasterFiles/PhysicalStock/PhysicalStockEntry"/>
   <xs:field xpath="ProductCode"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceLineProductCode" refer="KeyProductCode">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line"/>
   <xs:field xpath="ProductCode"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvpiceLineProductCode" refer="KeyProductCode">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line"/>
   <xs:field xpath="ProductCode"/>
  </xs:keyref>
  <xs:keyref name="RefStockMovementLineProductCode" refer="KeyProductCode">
   <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
   <xs:field xpath="ProductCode"/>
  </xs:keyref>
  <xs:keyref name="RefAssetTransactionAsset" refer="KeyAsset">
   <xs:selector xpath="SourceDocuments/AssetTransactions/AssetTransaction"/>
   <xs:field xpath="AssetID"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceLineMovementReference"
             refer="KeyMovementReference">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line/Delivery"/>
   <xs:field xpath="MovementReference"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvoiceLineMovementReference"
             refer="KeyMovementReference">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line/Delivery"/>
   <xs:field xpath="MovementReference"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceTransactionReference"
             refer="KeyTransactionReference">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice"/>
   <xs:field xpath="TransactionID"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvoideTransacrionReference"
             refer="KeyTransactionReference">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice"/>
   <xs:field xpath="TransactionID"/>
  </xs:keyref>
  <xs:keyref name="RefStockMovementTransactionReference"
             refer="KeyTransactionReference">
   <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
   <xs:field xpath="TransactionID"/>
  </xs:keyref>
  <xs:keyref name="RefPaymentTransactionReference"
             refer="KeyTransactionReference">
   <xs:selector xpath="SourceDocuments/Payments/Payment"/>
   <xs:field xpath="TransactionID"/>
  </xs:keyref>
  <xs:keyref name="RefAssetTransactionReference"
             refer="KeyTransactionReference">
   <xs:selector xpath="SourceDocuments/AssetTransactions/AssetTransaction"/>
   <xs:field xpath="AssetTransactionID"/>
  </xs:keyref>
  <xs:keyref name="RefProductTaxCode" refer="KeyTaxCode">
   <xs:selector xpath="MasterFiles/Products/Product/Tax"/>
   <xs:field xpath="TaxCode"/>
  </xs:keyref>
  <xs:keyref name="RefGLTransactionLineTaxCode" refer="KeyTaxCode">
   <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line/TaxInformation"/>
   <xs:field xpath="TaxCode"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvoiceLineTaxCode" refer="KeyTaxCode">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line/TaxInformation"/>
   <xs:field xpath="TaxCode"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvoiceTotalsTaxCode" refer="KeyTaxCode">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/DocumentTotals/TaxInformationTotals"/>
   <xs:field xpath="TaxCode"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceLineTaxCode" refer="KeyTaxCode">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line/TaxInformation"/>
   <xs:field xpath="TaxCode"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceTotalsTaxCode" refer="KeyTaxCode">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/DocumentTotals/TaxInformationTotals"/>
   <xs:field xpath="TaxCode"/>
  </xs:keyref>
  <xs:keyref name="RefPaymentLineTaxCode" refer="KeyTaxCode">
   <xs:selector xpath="SourceDocuments/Payments/Payment/Line/TaxInformation"/>
   <xs:field xpath="TaxCode"/>
  </xs:keyref>
  <xs:keyref name="RefPaymentTotalsTaxCode" refer="KeyTaxCode">
   <xs:selector xpath="SourceDocuments/Payments/Payment/DocumentTotals/TaxInformationTotals"/>
   <xs:field xpath="TaxCode"/>
  </xs:keyref>
  <xs:keyref name="RefStockMovementLineTaxCode" refer="KeyTaxCode">
   <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line/TaxInformation"/>
   <xs:field xpath="TaxCode"/>
  </xs:keyref>
  <xs:keyref name="RefGLAnalysisType" refer="KeyAnalysisType">
   <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line/Analysis"/>
   <xs:field xpath="AnalysisType"/>
  </xs:keyref>
  <xs:keyref name="RefGLAnalysisID" refer="KeyAnalysisID">
   <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line/Analysis"/>
   <xs:field xpath="AnalysisID"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceLineAnalysisType" refer="KeyAnalysisType">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line/Analysis"/>
   <xs:field xpath="AnalysisType"/>
  </xs:keyref>
  <xs:keyref name="RefSalesInvoiceLineAnalysisID" refer="KeyAnalysisID">
   <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line/Analysis"/>
   <xs:field xpath="AnalysisID"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvoiceLineAnalysisType" refer="KeyAnalysisType">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line/Analysis"/>
   <xs:field xpath="AnalysisType"/>
  </xs:keyref>
  <xs:keyref name="RefPurchaseInvoiceLineAnalysisID" refer="KeyAnalysisID">
   <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line/Analysis"/>
   <xs:field xpath="AnalysisID"/>
  </xs:keyref>
  <xs:keyref name="RefPaymentLineAnalysisType" refer="KeyAnalysisType">
   <xs:selector xpath="SourceDocuments/Payments/Payment/Line/Analysis"/>
   <xs:field xpath="AnalysisType"/>
  </xs:keyref>
  <xs:keyref name="RefPaymentLineAnalysisID" refer="KeyAnalysisID">
   <xs:selector xpath="SourceDocuments/Payments/Payment/Line/Analysis"/>
   <xs:field xpath="AnalysisID"/>
  </xs:keyref>
 </xs:element>
 <xs:complexType name="InvoiceStructure">
  <xs:annotation>
   <xs:documentation>Sąskaitų faktūrų, PVM sąskaitų faktūrų struktūra.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name="InvoiceNo" type="SAFmiddle2textType">
    <xs:annotation>
     <xs:documentation>Sąskaitos faktūros serija ir numeris, PVM sąskaitos
                       faktūros serija ir numeris.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:choice>
    <xs:element name="CustomerInfo">
     <xs:annotation>
      <xs:documentation>Informacija apie pirkėją.</xs:documentation>
     </xs:annotation>
     <xs:complexType>
      <xs:sequence>
       <xs:choice>
        <xs:element name="CustomerID" type="SAFmiddle2textType">
         <xs:annotation>
          <xs:documentation>Unikalus pirkėjo, kliento numeris subjekto apskaitos
                            sistemoje.</xs:documentation>
         </xs:annotation>
        </xs:element>
        <xs:element name="Name" type="SAFlongtextType">
         <xs:annotation>
          <xs:documentation>Kliento pavadinimas.</xs:documentation>
         </xs:annotation>
        </xs:element>
       </xs:choice>
       <xs:element name="BillingAddress" type="AddressStructure">
        <xs:annotation>
         <xs:documentation>Sąskaitos išrašymo adresas.</xs:documentation>
        </xs:annotation>
       </xs:element>
       <xs:element name="TaxRegistrationNumber" type="SAFmiddle1textType">
        <xs:annotation>
         <xs:documentation>
          Pirminiame dokumente nurodytas mokesčių mokėtojo PVM kodas (jo nesant
          kitas dokumente nurodytas identifikatorius ).
         </xs:documentation>
        </xs:annotation>
       </xs:element>
       <xs:element name="TaxType" type="SAFcodeType">
        <xs:annotation>
         <xs:documentation>
          Pirminiame dokumente nurodytas mokesčių mokėtojo registracijos kodo
          tipas. Pasirinkimai: „PVM“ - PVM mokėtojo kodas , „MMR“ - mokesčių
          mokėtojų registro identifikacinis kodas arba kita.
         </xs:documentation>
        </xs:annotation>
       </xs:element>
       <xs:element name="Country" type="ISOCountryCode">
        <xs:annotation>
         <xs:documentation>
          Pirminiame dokumente nurodytas  šalies kodas iš dviejų raidžių pagal
          ISO 3166-1 alpha 2 standartą, pavyzdžiui, NL - Nyderlandai.
         </xs:documentation>
        </xs:annotation>
       </xs:element>
      </xs:sequence>
     </xs:complexType>
    </xs:element>
    <xs:element name="SupplierInfo">
     <xs:annotation>
      <xs:documentation>Informacija apie tiekėją.</xs:documentation>
     </xs:annotation>
     <xs:complexType>
      <xs:sequence>
       <xs:choice>
        <xs:element name="SupplierID" type="SAFmiddle2textType">
         <xs:annotation>
          <xs:documentation>Tiekėjo unikalus kodas subjekto apskaitos sistemoje.</xs:documentation>
         </xs:annotation>
        </xs:element>
        <xs:element name="Name" type="SAFlongtextType">
         <xs:annotation>
          <xs:documentation>Pavadinimas.</xs:documentation>
         </xs:annotation>
        </xs:element>
       </xs:choice>
       <xs:element name="BillingAddress" type="AddressStructure">
        <xs:annotation>
         <xs:documentation>Sąskaitos išrašymo adresas.</xs:documentation>
        </xs:annotation>
       </xs:element>
       <xs:element name="TaxRegistrationNumber" type="SAFmiddle1textType">
        <xs:annotation>
         <xs:documentation>
          Pirminiame dokumente nurodytas mokesčių mokėtojo PVM kodas (jo nesant
          kitas dokumente nurodytas identifikatorius ).
         </xs:documentation>
        </xs:annotation>
       </xs:element>
       <xs:element name="TaxType" type="SAFcodeType">
        <xs:annotation>
         <xs:documentation>
          Pirminiame dokumente nurodytas mokesčių mokėtojo registracijos kodo
          tipas. Pasirinkimai: „PVM“ - PVM mokėtojo kodas , „MMR“ - mokesčių
          mokėtojų registro identifikacinis kodas arba kita.
         </xs:documentation>
        </xs:annotation>
       </xs:element>
       <xs:element name="Country" type="ISOCountryCode">
        <xs:annotation>
         <xs:documentation>
          Pirminiame dokumente nurodytas  šalies kodas iš dviejų raidžių pagal
          ISO 3166-1 alpha 2 standartą, pavyzdžiui, NL - Nyderlandai.
         </xs:documentation>
        </xs:annotation>
       </xs:element>
      </xs:sequence>
     </xs:complexType>
    </xs:element>
   </xs:choice>
   <xs:element name="AccountID" type="SAFmiddle2textType">
    <xs:annotation>
     <xs:documentation>Didžiosios knygos sąskaitos kodas. Galima įtraukti
                       subsąskaitų numerius. Gali apimti daug skirtingų lygių
                       tam, kad būtų galima kuo geriau identifikuoti sąskaitą.
                       Gali apimti išlaidų centrus, tokius kaip: įmonė,
                       padalinys, regionas, grupė ir filialas/departamentas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="InvoiceDate" type="xs:date">
    <xs:annotation>
     <xs:documentation>Sąskaitos faktūros data, PVM sąskaitos faktūros data.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="InvoiceType" type="SAFcodeType">
    <xs:annotation>
     <xs:documentation>
      Sąskaitos tipo pasirinkimai: sąskaita faktūra, PVM sąskaita faktūra,
      debetinė sąskaita, kreditinė sąskaita, kvitas ir kitas Subjekto apskaitos
      sistemoje nurodytas dokumento tipas.
     </xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="ShipTo" type="ShippingPointStructure" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Pristatymo duomenys.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="ShipFrom" type="ShippingPointStructure" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Išsiuntimo duomenys.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="SelfBillingIndicator" type="SAFcodeType" minOccurs="0">
    <xs:annotation>
     <xs:documentation>
      Žymima - „V“, kai PVM sąskaitą faktūrą/sąskaitą išsirašo pats prekių
      gavėjas.
     </xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="GLPostingDate" type="xs:date" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Data, kada didžiojoje knygoje fiksuojamas ūkinės
                       operacijos ar ūkinio įvykio įrašas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="SystemID" type="SAFmiddle1textType" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Sistemos automatiškai sukurtas unikalus kodas/numeris
                       konkrečiam dokumentui, susijusiam su ūkiniu įvykiu.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="TransactionID" type="SAFmiddle2textType">
    <xs:annotation>
     <xs:documentation>Unikalus numeris, kuris priskirtas ūkinei operacijai/
                       įvykiui ir kuris gali būti grindžiamas viena ar keliomis
                       serijomis.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Line" maxOccurs="unbounded">
    <xs:annotation>
     <xs:documentation>Sąskaitos eilutės/įrašo duomenys.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
     <xs:sequence>
      <xs:element name="LineNumber" type="SAFshorttextType">
       <xs:annotation>
        <xs:documentation>Sąskaitos eilutės/įrašo numeris.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="AccountID" type="SAFmiddle2textType">
       <xs:annotation>
        <xs:documentation>Didžiosios knygos sąskaitos kodas. Galima įtraukti
                          subsąskaitų numerius. Gali apimti daug skirtingų lygių
                          tam, kad būtų galima kuo geriau identifikuoti
                          sąskaitą. Gali apimti išlaidų centrus, tokius kaip:
                          įmonė, padalinys, regionas, grupė ir
                          filialas/departamentas.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="Analysis" type="AnalysisStructure" minOccurs="0"
                  maxOccurs="unbounded">
       <xs:annotation>
        <xs:documentation>Didžiosios knygos analizės kodai.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="OrderReferences" minOccurs="0" maxOccurs="unbounded">
       <xs:annotation>
        <xs:documentation>Užsakymo duomenys.</xs:documentation>
       </xs:annotation>
       <xs:complexType>
        <xs:sequence>
         <xs:element name="OriginatingON" type="SAFmiddle2textType"
                     minOccurs="0">
          <xs:annotation>
           <xs:documentation>Unikalus užsakymo numeris.</xs:documentation>
          </xs:annotation>
         </xs:element>
         <xs:element name="OrderDate" type="xs:date" minOccurs="0">
          <xs:annotation>
           <xs:documentation>Užsakymo data.</xs:documentation>
          </xs:annotation>
         </xs:element>
        </xs:sequence>
       </xs:complexType>
      </xs:element>
      <xs:element name="ShipTo" type="ShippingPointStructure" minOccurs="0">
       <xs:annotation>
        <xs:documentation>Pristatymo duomenys.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="ShipFrom" type="ShippingPointStructure" minOccurs="0">
       <xs:annotation>
        <xs:documentation>Išsiuntimo duomenys.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="GoodsServicesID" minOccurs="0">
       <xs:annotation>
        <xs:documentation>
         Požymis, rodantis, ar tai prekės, ar paslaugos. Elemento reikšmės: PR -
         prekė, PS - paslauga)
        </xs:documentation>
       </xs:annotation>
       <xs:simpleType>
        <xs:restriction base="SAFcodeType">
         <xs:enumeration value="PS"/>
         <xs:enumeration value="PR"/>
        </xs:restriction>
       </xs:simpleType>
      </xs:element>
      <xs:element name="ProductCode" type="SAFmiddle2textType" minOccurs="0">
       <xs:annotation>
        <xs:documentation>Prekės/ paslaugos kodas.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="Delivery" minOccurs="0">
       <xs:annotation>
        <xs:documentation>
         Informacija apie prekių ar paslaugų pristatymo (atlikimo) datą arba
         trukmę.
        </xs:documentation>
       </xs:annotation>
       <xs:complexType>
        <xs:sequence>
         <xs:element name="MovementReference" type="SAFmiddle1textType">
          <xs:annotation>
           <xs:documentation>
            Unikali judėjimo (gabenimo) nuoroda.
           </xs:documentation>
          </xs:annotation>
         </xs:element>
         <xs:element name="DeliveryDate" type="xs:date">
          <xs:annotation>
           <xs:documentation>
            Krovinio/siuntos pristatymo/išsiuntimo data. Atsižvelgiant į
            dokumentų rūšį ir krovinio siuntos pristatymo sąlygas, pasirenkama
            viena iš datų (pvz., esant pardavimo operacijai, pasirenkama
            sąskaitos data, išskyrus atvejus, kai pagal pristatymo sąlygas
            krovinio siuntos nuosavybė pereina pirkėjui jų pristatymo momentu).
           </xs:documentation>
          </xs:annotation>
         </xs:element>
         <xs:element name="DeliveryPeriod">
          <xs:annotation>
           <xs:documentation>
            Pristatymų/atlikimų terminai.
           </xs:documentation>
          </xs:annotation>
          <xs:complexType>
           <xs:sequence>
            <xs:element name="FromDate" type="xs:date">
             <xs:annotation>
              <xs:documentation>
               Pristatymų/atlikimų pradžios data.
              </xs:documentation>
             </xs:annotation>
            </xs:element>
            <xs:element name="ToDate" type="xs:date">
             <xs:annotation>
              <xs:documentation>
               Pristatymų/atlikimų pabaigos data.
              </xs:documentation>
             </xs:annotation>
            </xs:element>
           </xs:sequence>
          </xs:complexType>
         </xs:element>
        </xs:sequence>
       </xs:complexType>
      </xs:element>
      <xs:element name="Quantity" type="SAFquantityType" minOccurs="0">
       <xs:annotation>
        <xs:documentation>Tiekiamų prekių ar teikiamų paslaugų kiekis.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="InvoiceUOM" type="SAFcodeType" minOccurs="0">
       <xs:annotation>
        <xs:documentation>Kiekio matavimo vienetas, pavyzdžiui, 12 vnt. pakuotė.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="UOMToUOMBaseConversionFactor" type="xs:decimal"
                  minOccurs="0">
       <xs:annotation>
        <xs:documentation>Matavimo vienetų konversijos koeficientas, keičiant iš
                          standartinio į bazinį.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="UnitPrice" type="SAFmonetaryType">
       <xs:annotation>
        <xs:documentation>Vieneto kaina vienetui/vienetų grupės kiekiui
                          antraštėje nurodyta valiuta.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="TaxPointDate" type="xs:date">
       <xs:annotation>
        <xs:documentation>
         Nurodyta apmokestinimo data, jei data nenurodyta, tuomet sąskaitos data.
        </xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="Description" type="SAFlongtextType">
       <xs:annotation>
        <xs:documentation>Sąskaitos eilutės aprašymas.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="InvoiceLineAmount" type="AmountStructure">
       <xs:annotation>
        <xs:documentation>Operacijos suma, neįtraukiant mokesčių ir gabenimo
                          rinkliavų/išlaidų.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="DebitCreditIndicator">
       <xs:annotation>
        <xs:documentation>Nuoroda identifikuojanti eilutės sumos požymį (D -
                          debetą/K - kreditą). Įrašas privalo atitikti įrašą,
                          randamą didžiojoje knygoje. Pavyzdžiui, grąžinimas
                          gali būti nurodytas minusine suma (kontrarinėje
                          sąskaitoje).</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
        <xs:restriction base="SAFcodeType">
         <xs:enumeration value="D"/>
         <xs:enumeration value="K"/>
        </xs:restriction>
       </xs:simpleType>
      </xs:element>
      <xs:element name="ShippingCostsAmount" type="AmountStructure"
                  minOccurs="0">
       <xs:annotation>
        <xs:documentation>Gabenimo išlaidų suma.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="TaxInformation" type="TaxInformationStructure"
                  minOccurs="0" maxOccurs="unbounded">
       <xs:annotation>
        <xs:documentation>Informacija apie mokesčius.</xs:documentation>
       </xs:annotation>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:element name="References" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Kreditinio/debetinio dokumento nuoroda.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
     <xs:sequence>
      <xs:element name="CreditNote" minOccurs="0">
       <xs:annotation>
        <xs:documentation>Kreditinis/debetinis dokumentas.</xs:documentation>
       </xs:annotation>
       <xs:complexType>
        <xs:sequence>
         <xs:element name="Reference" type="SAFmiddle2textType" minOccurs="0">
          <xs:annotation>
           <xs:documentation>Kreditinio/debetinio dokumento nuoroda į originalią
                             sąskaitą.</xs:documentation>
          </xs:annotation>
         </xs:element>
         <xs:element name="Reason" type="SAFlongtextType" minOccurs="0">
          <xs:annotation>
           <xs:documentation>Kreditinio/debetinio dokumento išrašymo priežastis
                             arba pagrindas.</xs:documentation>
          </xs:annotation>
         </xs:element>
        </xs:sequence>
       </xs:complexType>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:element name="Settlement" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Susitarimai dėl atsiskaitymo.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
     <xs:sequence>
      <xs:element name="SettlementDiscount" type="SAFmiddle1textType"
                  minOccurs="0">
       <xs:annotation>
        <xs:documentation>Atsiskaitymo nuolaidos (diskontai ir kt.).</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="SettlementAmount" type="AmountStructure">
       <xs:annotation>
        <xs:documentation>Atsiskaitymo suma.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="SettlementDueDate" type="SAFmiddle1textType"
                  minOccurs="0">
       <xs:annotation>
        <xs:documentation>Atsiskaitymo terminas.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="SettlementDate" type="xs:date" minOccurs="0">
       <xs:annotation>
        <xs:documentation>Atsiskaitymo data.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="PaymentMechanism" type="SAFcodeType" minOccurs="0">
       <xs:annotation>
        <xs:documentation>
         Mokėjimo būdas (elemento reikšmės – grynaisiais, negrynaisiais,
         užskaita).
        </xs:documentation>
       </xs:annotation>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:element name="DocumentTotals" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Dokumento suminiai rezultatai.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
     <xs:sequence>
      <xs:element name="TaxInformationTotals" type="TaxInformationStructure"
                  minOccurs="0" maxOccurs="unbounded">
       <xs:annotation>
        <xs:documentation>Apskaičiuotų mokesčių suma, apibendrinama pagal
                          mokesčių tipus/mokesčių kodus.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="ShippingCostsAmountTotal" type="SAFmonetaryType"
                  minOccurs="0">
       <xs:annotation>
        <xs:documentation>Bendra gabenimo išlaidų suma.</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="NetTotal" type="SAFmonetaryType">
       <xs:annotation>
        <xs:documentation>
         Bendra vertė, neįtraukiant mokesčių ir gabenimo išlaidų.
        </xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name="GrossTotal" type="SAFmonetaryType">
       <xs:annotation>
        <xs:documentation>Bendra suma, įskaitant mokesčius ir gabenimo išlaidas.</xs:documentation>
       </xs:annotation>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name="ShippingPointStructure">
  <xs:annotation>
   <xs:documentation>Pristatymų informacijos struktūra.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name="DeliveryID" type="SAFmiddle1textType" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Krovinio/siuntos identifikavimo numeris.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="DeliveryDate" type="xs:date" minOccurs="0">
    <xs:annotation>
     <xs:documentation>
      Krovinio/siuntos pristatymo/išsiuntimo data. Atsižvelgiant į dokumentų
      rūšį ir krovinio siuntos pristatymo sąlygas, pasirenkama viena iš datų
      (pvz., esant pardavimo operacijai, pasirenkama sąskaitos data, išskyrus
      atvejus, kai pagal pristatymo sąlygas krovinio siuntos nuosavybė pereina
      pirkėjui jų pristatymo momentu).
     </xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="WarehouseID" type="SAFmiddle1textType" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Sandėlis, kuriame laikomos prekės, taip pat įmanoma
                       identifikuoti prekių gamybos arba atsargų (prekių)
                       judėjimo metu.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Address" type="AddressStructure" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Adresas.</xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name="AddressStructure">
  <xs:annotation>
   <xs:documentation>Adreso struktūra.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name="StreetName" type="SAFmiddle2textType" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Gatvės pavadinimas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Number" type="SAFshorttextType" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Pastato, buto numeris.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="City" type="SAFmiddle1textType">
    <xs:annotation>
     <xs:documentation>Miestas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="PostalCode" type="SAFshorttextType">
    <xs:annotation>
     <xs:documentation>Pašto kodas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Country" type="ISOCountryCode">
    <xs:annotation>
     <xs:documentation>
      Šalies kodas iš dviejų raidžių pagal ISO 3166-1 alpha 2 standartą,
      pavyzdžiui, NL - Nyderlandai.
     </xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="AddressType">
    <xs:annotation>
     <xs:documentation>Eilutė, skirta keliems adresams atskirti, nurodant adreso
                       tipą. Pasirinkimai: "Buveinės adresas", "Korespondencijos
                       adresas", "Sąskaitos išrašymo adresas", "Registracijos
                       adresas", "Prekės išsiuntimo adresas", "Prekės pristatymo
                       adresas", "Kitas adresas".</xs:documentation>
    </xs:annotation>
    <xs:simpleType>
     <xs:restriction base="xs:string">
      <xs:enumeration value="Buveinės adresas"/>
      <xs:enumeration value="Korespondencijos adresas"/>
      <xs:enumeration value="Sąskaitos išrašymo adresas"/>
      <xs:enumeration value="Registracijos adresas"/>
      <xs:enumeration value="Prekės išsiuntimo adresas"/>
      <xs:enumeration value="Prekės pristatymo adresas"/>
      <xs:enumeration value="Kitas adresas"/>
     </xs:restriction>
    </xs:simpleType>
   </xs:element>
   <xs:element name="Region" type="SAFmiddle1textType" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Savivaldybė.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="FullAddress" type="SAFlongtextType" minOccurs="0">
    <xs:annotation>
     <xs:documentation>
      Adresas rašomas laisvu tekstu (gatvė, namo numeris, miestas ir kt.).
     </xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name="AmountStructure">
  <xs:annotation>
   <xs:documentation>Sumų struktūra.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name="Amount" type="SAFmonetaryType">
    <xs:annotation>
     <xs:documentation>Suma, įvertinta antraštėje nurodyta valiuta.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:sequence>
    <xs:element name="CurrencyCode" type="ISOCurrencyCode">
     <xs:annotation>
      <xs:documentation>
       Trijų raidžių valiutos kodas pagal ISO 4217 standartą, pavyzdžiui, EUR -
       eurams ar USD – JAV doleriams.
      </xs:documentation>
     </xs:annotation>
    </xs:element>
    <xs:element name="CurrencyAmount" type="SAFmonetaryType">
     <xs:annotation>
      <xs:documentation>Suma atitinkama valiuta.</xs:documentation>
     </xs:annotation>
    </xs:element>
   </xs:sequence>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name="AnalysisStructure">
  <xs:annotation>
   <xs:documentation>Analizės struktūra.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name="AnalysisType" type="SAFcodeType">
    <xs:annotation>
     <xs:documentation>Analizės tipo identifikatoriai, pvz., KC (kaštų centrui),
                       DEP (departamentui), ir t.t.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="AnalysisID" type="SAFlongtextType">
    <xs:annotation>
     <xs:documentation>
      Analizės numeris, pvz., 1200-HDOF-TR (pagr. ofiso išlaikymo sąnaudos),
      P-4800-123 (123 projektui 4800 filiale).
     </xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="AnalysisAmount" type="AmountStructure" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Suma (išlaidų suma) konkrečiam analizės tipui.</xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name="BankAccountStructure">
  <xs:annotation>
   <xs:documentation>Banko sąskaitos struktūra.</xs:documentation>
  </xs:annotation>
  <xs:choice>
   <xs:element name="IBANNumber" type="SAFmiddle1textType">
    <xs:annotation>
     <xs:documentation>Sąskaitos IBAN numeris.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="BankAccountNumber" type="SAFmiddle1textType">
    <xs:annotation>
     <xs:documentation>Sąskaitos numeris.</xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:choice>
 </xs:complexType>
 <xs:complexType name="CompanyHeaderStructure">
  <xs:annotation>
   <xs:documentation>Mokesčių mokėtojo antraštės struktūra.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name="RegistrationNumber" type="SAFmiddle1textType">
    <xs:annotation>
     <xs:documentation>Subjekto registracijos numeris/kodas (Juridinių asmenų
                       registro kodas arba kodas užsienio valstybėje).</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="EORINumber" type="SAFmiddle1textType" minOccurs="0">
    <xs:annotation>
     <xs:documentation>
      Ekonominių operacijų vykdytojų registracijos ir identifikavimo kodas.
     </xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Name" type="SAFlongtextType">
    <xs:annotation>
     <xs:documentation>Subjekto pavadinimas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Address" type="AddressStructure" maxOccurs="unbounded">
    <xs:annotation>
     <xs:documentation>Adresas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Contact" type="ContactHeaderStructure"
               maxOccurs="unbounded">
    <xs:annotation>
     <xs:documentation>
      Subjekto atstovo kontaktai.
     </xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="TaxRegistration" type="TaxIDStructure" minOccurs="0"
               maxOccurs="unbounded">
    <xs:annotation>
     <xs:documentation>Subjekto, kaip mokesčių mokėtojo, registracijos duomenys.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="BankAccount" type="BankAccountStructure" minOccurs="0"
               maxOccurs="unbounded">
    <xs:annotation>
     <xs:documentation>
      Banko sąskaita.
     </xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name="CompanyStructure">
  <xs:annotation>
   <xs:documentation>Mokesčių mokėtojo duomenų struktūra.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name="RegistrationNumber" type="SAFmiddle1textType"
               minOccurs="0">
    <xs:annotation>
     <xs:documentation>Subjekto registracijos numeris/kodas (Juridinių asmenų
                       registro, fizinio asmens kodas arba kodas užsienio
                       valstybėje).</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Name" type="SAFlongtextType">
    <xs:annotation>
     <xs:documentation>Subjekto pavadinimas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Address" type="AddressStructure" maxOccurs="unbounded">
    <xs:annotation>
     <xs:documentation>Adresas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Contact" type="ContactInformationStructure" minOccurs="0"
               maxOccurs="unbounded">
    <xs:annotation>
     <xs:documentation>Subjekto atstovo kontaktai.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="TaxRegistration" type="TaxIDStructure" minOccurs="0"
               maxOccurs="unbounded">
    <xs:annotation>
     <xs:documentation>Subjekto kaip mokesčių mokėtojo registracijos duomenys.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="BankAccount" type="BankAccountStructure" minOccurs="0"
               maxOccurs="unbounded">
    <xs:annotation>
     <xs:documentation>Banko sąskaita.</xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name="ContactHeaderStructure">
  <xs:annotation>
   <xs:documentation>Kontaktų antraštės struktūra.</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
   <xs:restriction base="ContactInformationStructure">
    <xs:sequence>
     <xs:element name="ContactPerson" type="PersonNameStructure">
      <xs:annotation>
       <xs:documentation>Subjekto kontaktinis asmuo.</xs:documentation>
      </xs:annotation>
     </xs:element>
     <xs:element name="Telephone" type="SAFshorttextType">
      <xs:annotation>
       <xs:documentation>Telefonas.</xs:documentation>
      </xs:annotation>
     </xs:element>
     <xs:element name="Email" type="SAFemailType" minOccurs="0">
      <xs:annotation>
       <xs:documentation>Elektroninio pašto adresas ( privalomas @ simbolis).</xs:documentation>
      </xs:annotation>
     </xs:element>
    </xs:sequence>
   </xs:restriction>
  </xs:complexContent>
 </xs:complexType>
 <xs:complexType name="ContactInformationStructure">
  <xs:annotation>
   <xs:documentation>Kontakto informacijos struktūra.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name="ContactPerson" type="PersonNameStructure">
    <xs:annotation>
     <xs:documentation>Subjekto kontaktinis asmuo.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Telephone" type="SAFshorttextType" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Telefonas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Email" type="SAFemailType" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Elektroninio pašto adresas ( privalomas "@" simbolis).</xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name="HeaderStructure">
  <xs:annotation>
   <xs:documentation>Antraštės struktūra.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name="AuditFileVersion" type="SAFcodeType">
    <xs:annotation>
     <xs:documentation>Audito rinkmenos XML versija.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="AuditFileCountry" type="ISOCountryCode">
    <xs:annotation>
     <xs:documentation>Audito rinkmenos šalis (Šalies kodas iš dviejų raidžių
                       pagal ISO 3166-1 alpha 2 standartą, pavyzdžiui, NL -
                       Nyderlandai).</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="AuditFileDateCreated" type="xs:dateTime">
    <xs:annotation>
     <xs:documentation>
      Audito rinkmenos sukūrimo data ir laikas.
     </xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="SoftwareCompanyName" type="SAFlongtextType">
    <xs:annotation>
     <xs:documentation>Programinės įrangos kūrėjo pavadinimas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="SoftwareID" type="SAFlongtextType">
    <xs:annotation>
     <xs:documentation>Programinės įrangos pavadinimas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="SoftwareVersion" type="SAFshort2textType">
    <xs:annotation>
     <xs:documentation>Programinės įrangos versija.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Company" type="CompanyHeaderStructure">
    <xs:annotation>
     <xs:documentation>Subjektas, kurio duomenys teikiami SAF-T rinkmenoje.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="DefaultCurrencyCode" type="ISOCurrencyCode">
    <xs:annotation>
     <xs:documentation>Trijų raidžių valiutos, kuri yra numatytoji audito
                       rinkmenos valiuta, kodas pagal ISO 4217 standartą.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="SelectionCriteria" type="SelectionCriteriaStructure">
    <xs:annotation>
     <xs:documentation>Atrankos kriterijai, pagal kuriuos formuojama audito
                       rinkmena (SAF-T).</xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name="PersonNameStructure">
  <xs:annotation>
   <xs:documentation>Fizinio asmens struktūra.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name="FirstName" type="SAFmiddle1textType">
    <xs:annotation>
     <xs:documentation>Kontaktinio asmens vardas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="LastName" type="SAFmiddle2textType">
    <xs:annotation>
     <xs:documentation>Kontaktinio asmens pavardė.</xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name="SelectionCriteriaStructure">
  <xs:annotation>
   <xs:documentation>Atrankos kriterijų struktūra.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name="SelectionStartDate" type="xs:date">
    <xs:annotation>
     <xs:documentation>
      Audito rinkmenos SAF-T duomenų atrinkto laikotarpio pradžios data.
     </xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="SelectionEndDate" type="xs:date">
    <xs:annotation>
     <xs:documentation>
      Audito rinkmenos SAF-T duomenų atrinkto laikotarpio pabaigos data.
     </xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="PeriodStart" type="xs:nonNegativeInteger">
    <xs:annotation>
     <xs:documentation>
      Mokestinio laikotarpio pradžia. (Keturi pirmi skaičiai nurodo metus, o
      kiti du – mėnesį).
     </xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="PeriodStartYear">
    <xs:annotation>
     <xs:documentation>
      Laikotarpio pradžios metai.
     </xs:documentation>
    </xs:annotation>
    <xs:simpleType>
     <xs:restriction base="xs:nonNegativeInteger">
      <xs:minInclusive value="1970"/>
      <xs:maxInclusive value="2100"/>
     </xs:restriction>
    </xs:simpleType>
   </xs:element>
   <xs:element name="PeriodEnd" type="xs:nonNegativeInteger">
    <xs:annotation>
     <xs:documentation>
      Mokestinio laikotarpio pabaiga. (Keturi pirmi skaičiai nurodo metus, o
      kiti du – mėnesį).
     </xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="PeriodEndYear">
    <xs:annotation>
     <xs:documentation>
      Laikotarpio pabaigos metai.
     </xs:documentation>
    </xs:annotation>
    <xs:simpleType>
     <xs:restriction base="xs:nonNegativeInteger">
      <xs:minInclusive value="1970"/>
      <xs:maxInclusive value="2100"/>
     </xs:restriction>
    </xs:simpleType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name="TaxIDStructure">
  <xs:annotation>
   <xs:documentation>Mokesčių mokėtojo registracijos struktūra.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name="TaxRegistrationNumber" type="SAFmiddle1textType">
    <xs:annotation>
     <xs:documentation>
      Nurodomas mokesčių mokėtojo kodas (mokesčių mokėtojo registro (MMR)
      identifikacinis kodas ir PVM mokėtojo kodas).
     </xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="TaxType">
    <xs:annotation>
     <xs:documentation>
      Mokesčių mokėtojo registracijos kodo tipas. Pasirinkimai: „MMR“ - mokesčių
      mokėtojų registro identifikacinis kodas ir „PVM“ - PVM mokėtojo kodas.
     </xs:documentation>
    </xs:annotation>
    <xs:simpleType>
     <xs:restriction base="SAFcodeType">
      <xs:enumeration value="MMR"/>
      <xs:enumeration value="PVM"/>
     </xs:restriction>
    </xs:simpleType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name="TaxInformationStructure">
  <xs:annotation>
   <xs:documentation>Mokesčių sumų informacijos struktūra.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name="TaxType" type="SAFcodeType" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Mokesčių tipas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="TaxCode" type="SAFcodeType" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Mokesčio kodas paieškai klasifikatoriuje (žr. aprašo
                       priedus).</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="TaxPercentage" type="xs:decimal" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Mokesčio tarifas procentais (jei nenaudojamas fiksuotas
                       mokestis).</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="TaxBase" type="xs:decimal" minOccurs="0">
    <xs:annotation>
     <xs:documentation>Bazė, nuo kurios skaičiuojamas mokestis. Tai gali būti
                       suma arba kiekis, pvz., litrais.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="TaxBaseDescription" type="SAFmiddle2textType"
               minOccurs="0">
    <xs:annotation>
     <xs:documentation>Vertės aprašymas pagal mokestinę bazę.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="TaxAmount" type="AmountStructure">
    <xs:annotation>
     <xs:documentation>Informacija apie mokesčių sumą.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="TaxExemptionReason" type="SAFmiddle2textType"
               minOccurs="0">
    <xs:annotation>
     <xs:documentation>Atleidimo nuo mokesčio ar mokesčio sumažinimo pagrindas.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="TaxDeclarationPeriod" type="SAFmiddle1textType"
               minOccurs="0">
    <xs:annotation>
     <xs:documentation>Deklaravimo arba apmokestinimo laikotarpio nustatymas, už
                       kurį mokesčio suma deklaruojama mokesčio administratoriui.</xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:simpleType name="SAFmonetaryType">
  <xs:restriction base="xs:decimal">
   <xs:totalDigits value="18"/>
   <xs:fractionDigits value="2"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="SAFquantityType">
  <xs:restriction base="xs:decimal">
   <xs:totalDigits value="22"/>
   <xs:fractionDigits value="6"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="SAFcodeType">
  <xs:restriction base="xs:string">
   <xs:maxLength value="24"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="SAFshorttextType">
  <xs:restriction base="xs:string">
   <xs:maxLength value="18"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="SAFshort2textType">
  <xs:restriction base="xs:string">
   <xs:maxLength value="24"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="SAFmiddle1textType">
  <xs:restriction base="xs:string">
   <xs:maxLength value="35"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="SAFmiddle2textType">
  <xs:restriction base="xs:string">
   <xs:maxLength value="70"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="SAFemailType">
  <xs:restriction base="xs:string">
   <xs:maxLength value="70"/>
   <xs:pattern value="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="SAFlongtextType">
  <xs:restriction base="xs:string">
   <xs:maxLength value="256"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="ISOCountryCode">
  <xs:restriction base="xs:string">
   <xs:length value="2"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="ISOCurrencyCode">
  <xs:restriction base="xs:string">
   <xs:length value="3"/>
  </xs:restriction>
 </xs:simpleType>
</xs:schema>
