Document-Invoice.xsd — различия между версиями

Материал из Фабиус wiki
Перейти к: навигация, поиск
м
м
Строка 438: Строка 438:
 
<xs:element ref="SellerLocationCode" minOccurs="0"/>
 
<xs:element ref="SellerLocationCode" minOccurs="0"/>
 
<xs:element ref="ContactInformation" minOccurs="0"/>
 
<xs:element ref="ContactInformation" minOccurs="0"/>
</xs:sequence>
+
    </xs:sequence>
</xs:complexType>
+
  </xs:complexType>
</xs:element>
+
  </xs:element>
 
   <xs:element name="Line-Item">
 
   <xs:element name="Line-Item">
 
   <xs:complexType>
 
   <xs:complexType>

Версия 09:04, 3 августа 2020

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs = "http://www.w3.org/2001/XMLSchema" elementFormDefault = "qualified" attributeFormDefault = "unqualified" version = "1.3">

<xs:element name="Document-Invoice"> <xs:complexType> <xs:sequence> <xs:element ref="Document-Header" minOccurs="0"/> <xs:element ref="Invoice-Header"/> <xs:element ref="Document-Parties" minOccurs="0"/> <xs:element ref="Invoice-Parties"/> <xs:element ref="Invoice-Lines"/> <xs:element ref="Invoice-Summary"/> <xs:element ref="Document-Attachments" minOccurs="0"/> <xs:element ref="Signer" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Document-Header"> <xs:complexType> <xs:sequence> <xs:element name="DocumentReceiveDateTime" type="xs:dateTime" minOccurs="0"/> <xs:element name="DocumentProcessDateTime" type="xs:dateTime" minOccurs="0"/> <xs:element name="DocumentID" type="string20" minOccurs="0"/> <xs:element name="DocumentUID" type="string38" minOccurs="0"/> <xs:element name="DocumentLink" type="string300" minOccurs="0"/> <xs:element name="DocumentVersion" type="string3" minOccurs="0"/> <xs:element name="DocumentType" type="string35" minOccurs="0"/> <xs:element name="DocumentSource" type="DocumentSource" minOccurs="0"/> <xs:element name="OriginalFileName" type="string175" minOccurs="0"/> <xs:element name="MessageID" type="string37" minOccurs="0"/> <xs:element name="SenderMessageID" type="string37" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Invoice-Header"> <xs:complexType> <xs:sequence> <xs:element name="InvoiceNumber" type="string35"/> <xs:element name="InvoiceDate" type="date" default="2007-01-01"/> <xs:element name="InvoiceVersionNumber" type="string35" minOccurs="0"/> <xs:element name="InvoiceVersionDate" type="date" default="2007-01-01" minOccurs="0"/> <xs:element name="SalesDate" type="date" default="2007-01-01" minOccurs="0"/> <xs:element name="InvoiceCurrency" type="InvoiceCurrency"/> <xs:element name="InvoiceCurrencyLocal" type="InvoiceCurrency" default="NON" minOccurs="0"/> <xs:element name="InvoiceCurrencyCode" type="string9" minOccurs="0"/> <xs:element name="InvoicePaymentDueDate" type="date" default="2007-01-01" minOccurs="0"/> <xs:element name="InvoicePaymentTerms" type="InvoicePaymentTerms" default="0" minOccurs="0"/> <xs:element name="InvoicePaymentMode" type="string175" minOccurs="0"/> <xs:element name="InvoicePostDate" type="date" default="2007-01-01" minOccurs="0"/> <xs:element name="DocumentFunctionCode" type="DocumentFunctionCode"/> <xs:element name="DocumentNameCode" type="string3" minOccurs="0"/> <xs:element name="TransactionType" type="string70" minOccurs="0"/> <xs:element ref="Remarks" minOccurs="0"/> <xs:element name="PaymentReferenceNumber" type="string35" minOccurs="0"/> <xs:element name="FnsFileId" type="string300" minOccurs="0"/> <xs:element name="FnsEnable" type="FnsEnable" minOccurs="0"/> <xs:element ref="AdditionalData" minOccurs="0"/> <xs:element ref="Order" minOccurs="0"/> <xs:element ref="Reference" minOccurs="0"/> <xs:element ref="Factoring" minOccurs="0"/> <xs:element ref="Delivery" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Invoice-Summary"> <xs:complexType> <xs:sequence> <xs:element name="TotalLines" type="decimal4"/> <xs:element name="TotalInvoicedAmount" type="decimal4" minOccurs="0"/> <xs:element name="TotalNetAmount" type="decimal4"/> <xs:element name="TotalTaxAmount" type="decimal4"/> <xs:element name="TotalRounding" type="decimal4" minOccurs="0"/> <xs:element name="TotalGrossAmount" type="decimal4"/> <xs:element name="TotalAmountDue" type="decimal4" minOccurs="0"/> <xs:element name="TotalNetWeight" type="decimal3" minOccurs="0"/> <xs:element name="TotalGrossWeight" type="decimal3" minOccurs="0"/> <xs:element name="TotalDiscount" type="decimal4" minOccurs="0"/> <xs:element name="TotalDiscountAmount" type="decimal4" minOccurs="0"/> <xs:element name="TotalBaseAmount" type="decimal4" minOccurs="0"/> <xs:element name="TotalNetAmountLC" type="decimal4" minOccurs="0"/> <xs:element name="TotalTaxAmountLC" type="decimal4" minOccurs="0"/> <xs:element name="TotalGrossAmountLC" type="decimal4" minOccurs="0"/> <xs:element name="IncreaseTotalNetAmount" type="decimal4" minOccurs="0"/> <xs:element name="IncreaseTotalTaxAmount" type="decimal4" minOccurs="0"/> <xs:element name="IncreaseTotalGrossAmount" type="decimal4" minOccurs="0"/> <xs:element name="DecreaseTotalNetAmount" type="decimal4" minOccurs="0"/> <xs:element name="DecreaseTotalTaxAmount" type="decimal4" minOccurs="0"/> <xs:element name="DecreaseTotalGrossAmount" type="decimal4" minOccurs="0"/> <xs:element name="PreviousTotalLines" type="decimal4" minOccurs="0"/> <xs:element name="PreviousTotalInvoicedAmount" type="decimal4" minOccurs="0"/> <xs:element name="PreviousTotalNetAmount" type="decimal4" minOccurs="0"/> <xs:element name="PreviousTotalTaxAmount" type="decimal4" minOccurs="0"/> <xs:element name="PreviousTotalGrossAmount" type="decimal4" minOccurs="0"/> <xs:element ref="Tax-Summary"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Order"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element name="BuyerOrderNumber" type="string35" minOccurs="0"/> <xs:element name="BuyerOrderDate" type="date" default="2007-01-01" minOccurs="0"/> <xs:element name="SellerOrderNumber" type="string35" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Reference"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element name="InvoiceReferenceNumber" type="string35" minOccurs="0"/> <xs:element name="InvoiceReferenceDate" type="date" default="2007-01-01" minOccurs="0"/> <xs:element name="InvoiceReferenceVersionNumber" type="string35" minOccurs="0"/> <xs:element name="InvoiceReferenceVersionDate" type="string35" minOccurs="0"/> <xs:element ref="ContractNumber" minOccurs="0"/> <xs:element ref="ContractDate" minOccurs="0"/> <xs:element name="ReceivingAdviceNumber" type="string35" minOccurs="0"/> <xs:element name="ReceivingAdviceDate" type="date" default="2007-01-01" minOccurs="0"/> <xs:element ref="AdditionalData" minOccurs="0"/> <xs:element ref="Reference-Elements" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Factoring"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element ref="FactoringCode"/> <xs:element ref="FactorContractNumber" minOccurs="0"/> <xs:element ref="FactorContractDate" minOccurs="0"/> <xs:element ref="Remarks" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Delivery"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element name="DeliveryLocationNumber" type="string13" minOccurs="0"/> <xs:element ref="CodeBySender" minOccurs="0"/> <xs:element ref="CodeByReceiver" minOccurs="0"/> <xs:element ref="TaxID" minOccurs="0"/> <xs:element ref="TaxRegistrationReasonCode" minOccurs="0"/> <xs:element ref="CodeBySeller" minOccurs="0"/> <xs:element ref="CodeByBuyer" minOccurs="0"/> <xs:element ref="UtilizationRegisterNumber" minOccurs="0"/> <xs:element ref="Name" minOccurs="0"/> <xs:element ref="RoomNumber" minOccurs="0"/> <xs:element ref="Housing" minOccurs="0"/> <xs:element ref="HouseNumber" minOccurs="0"/> <xs:element ref="StreetAndNumber" minOccurs="0"/> <xs:element ref="CityName" minOccurs="0"/> <xs:element ref="Locality" minOccurs="0"/> <xs:element ref="District" minOccurs="0"/> <xs:element ref="State" minOccurs="0"/> <xs:element ref="StateCode" minOccurs="0"/> <xs:element ref="PostalCode" minOccurs="0"/> <xs:element ref="Country" minOccurs="0"/> <xs:element ref="CountryCode" minOccurs="0"/> <xs:element ref="Individual" minOccurs="0"/> <xs:element name="DeliveryDate" type="date" default="2007-01-01" minOccurs="0"/> <xs:element name="DespatchNumber" type="string35" minOccurs="0"/> <xs:element name="DespatchDate" type="date" default="2007-01-01" minOccurs="0"/> <xs:element ref="BuyerLocationCode" minOccurs="0"/> <xs:element ref="SellerLocationCode" minOccurs="0"/> <xs:element ref="ContactInformation" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Document-Parties"> <xs:complexType> <xs:sequence> <xs:element ref="Sender"/> <xs:element ref="Receiver"/> <xs:element ref="Creator" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Invoice-Parties"> <xs:complexType> <xs:sequence> <xs:element ref="Buyer"/> <xs:element ref="Payer"/> <xs:element ref="Invoicee" minOccurs="0"/> <xs:element ref="Seller"/> <xs:element ref="Payee" minOccurs="0"/> <xs:element ref="ShipFrom" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Buyer"> <xs:complexType> <xs:sequence> <xs:element ref="ILN"/> <xs:element ref="CodeBySender" minOccurs="0"/> <xs:element ref="CodeByReceiver" minOccurs="0"/> <xs:element ref="TaxID" minOccurs="0"/> <xs:element ref="TaxRegistrationReasonCode" minOccurs="0"/> <xs:element ref="CodeBySeller" minOccurs="0"/> <xs:element ref="CodeByBuyer" minOccurs="0"/> <xs:element ref="AccountNumber" minOccurs="0"/> <xs:element ref="UtilizationRegisterNumber" minOccurs="0"/> <xs:element ref="Name" minOccurs="0"/> <xs:element ref="RoomNumber" minOccurs="0"/> <xs:element ref="Housing" minOccurs="0"/> <xs:element ref="HouseNumber" minOccurs="0"/> <xs:element ref="StreetAndNumber" minOccurs="0"/> <xs:element ref="CityName" minOccurs="0"/> <xs:element ref="Locality" minOccurs="0"/> <xs:element ref="District" minOccurs="0"/> <xs:element ref="State" minOccurs="0"/> <xs:element ref="StateCode" minOccurs="0"/> <xs:element ref="PostalCode" minOccurs="0"/> <xs:element ref="Country" minOccurs="0"/> <xs:element ref="CountryCode" minOccurs="0"/> <xs:element ref="Individual" minOccurs="0"/> <xs:element ref="ContactInformation" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Seller"> <xs:complexType> <xs:sequence> <xs:element ref="ILN"/> <xs:element ref="CodeBySender" minOccurs="0"/> <xs:element ref="CodeByReceiver" minOccurs="0"/> <xs:element ref="TaxID" minOccurs="0"/> <xs:element ref="TaxRegistrationReasonCode" minOccurs="0"/> <xs:element ref="CodeBySeller" minOccurs="0"/> <xs:element ref="CodeByBuyer" minOccurs="0"/> <xs:element ref="AccountNumber" minOccurs="0"/> <xs:element ref="UtilizationRegisterNumber" minOccurs="0"/> <xs:element ref="Name" minOccurs="0"/> <xs:element ref="RoomNumber" minOccurs="0"/> <xs:element ref="Housing" minOccurs="0"/> <xs:element ref="HouseNumber" minOccurs="0"/> <xs:element ref="StreetAndNumber" minOccurs="0"/> <xs:element ref="CityName" minOccurs="0"/> <xs:element ref="Locality" minOccurs="0"/> <xs:element ref="District" minOccurs="0"/> <xs:element ref="State" minOccurs="0"/> <xs:element ref="StateCode" minOccurs="0"/> <xs:element ref="PostalCode" minOccurs="0"/> <xs:element ref="Country" minOccurs="0"/> <xs:element ref="CountryCode" minOccurs="0"/> <xs:element ref="Individual" minOccurs="0"/> <xs:element ref="OperatorDetails" minOccurs="0"/> <xs:element ref="SalesRepresentative" minOccurs="0"/> <xs:element ref="ContactInformation" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ShipFrom"> <xs:complexType> <xs:sequence> <xs:element ref="ILN"/> <xs:element ref="CodeBySender" minOccurs="0"/> <xs:element ref="CodeByReceiver" minOccurs="0"/> <xs:element ref="TaxID" minOccurs="0"/> <xs:element ref="TaxRegistrationReasonCode" minOccurs="0"/> <xs:element ref="CodeBySeller" minOccurs="0"/> <xs:element ref="CodeByBuyer" minOccurs="0"/> <xs:element ref="AccountNumber" minOccurs="0"/> <xs:element ref="UtilizationRegisterNumber" minOccurs="0"/> <xs:element ref="Name" minOccurs="0"/> <xs:element ref="RoomNumber" minOccurs="0"/> <xs:element ref="Housing" minOccurs="0"/> <xs:element ref="HouseNumber" minOccurs="0"/> <xs:element ref="StreetAndNumber" minOccurs="0"/> <xs:element ref="CityName" minOccurs="0"/> <xs:element ref="Locality" minOccurs="0"/> <xs:element ref="District" minOccurs="0"/> <xs:element ref="State" minOccurs="0"/> <xs:element ref="StateCode" minOccurs="0"/> <xs:element ref="PostalCode" minOccurs="0"/> <xs:element ref="Country" minOccurs="0"/> <xs:element ref="CountryCode" minOccurs="0"/> <xs:element ref="Individual" minOccurs="0"/> <xs:element ref="ContactInformation" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Sender"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element ref="ILN"/> <xs:element ref="CodeBySender" minOccurs="0"/> <xs:element ref="CodeByReceiver" minOccurs="0"/> <xs:element ref="Name" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Receiver"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element ref="ILN"/> <xs:element ref="CodeBySender" minOccurs="0"/> <xs:element ref="CodeByReceiver" minOccurs="0"/> <xs:element ref="Name" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Creator"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element ref="SystemUniqueCode" minOccurs="0"/> <xs:element ref="CodeBySender" minOccurs="0"/> <xs:element ref="CodeByReceiver" minOccurs="0"/> <xs:element ref="Name" minOccurs="0"/> <xs:element ref="TelephoneNumber" minOccurs="0"/> <xs:element ref="E-mail" minOccurs="0"/> <xs:element name="CreationType" type="string1" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ContactInformation"> <xs:complexType> <xs:sequence maxOccurs="unbounded"> <xs:element ref="Contact"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Contact"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element name="ContactFunctionCode" type="string3"/> <xs:element ref="Name" minOccurs="0"/> <xs:element ref="TelephoneNumber" minOccurs="0"/> <xs:element ref="E-mail" minOccurs="0"/> <xs:element ref="CodeBySender" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CodeBySender" type="string35"/> <xs:element name="CodeByReceiver" type="string35"/> <xs:element name="CodeByBuyer" type="string35"/> <xs:element name="CodeBySeller" type="string35"/> <xs:element name="Invoice-Lines"> <xs:complexType> <xs:sequence maxOccurs="unbounded"> <xs:element ref="Line"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="AccountNumber" type="string35"/> <xs:element name="AdditionalData"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element ref="Content" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Line-AdditionalData"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element ref="Content" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Content" type="xs:string"/> <xs:element name="CityName" type="string140"/> <xs:element name="UtilizationRegisterNumber" type="string35"/> <xs:element name="Country" type="string9"/> <xs:element name="CountryCode" type="string9"/> <xs:element name="E-mail" type="string350"/> <xs:element name="ILN" type="ILN"/> <xs:element name="Invoicee"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element ref="ILN"/> <xs:element ref="CodeBySender" minOccurs="0"/> <xs:element ref="CodeByReceiver" minOccurs="0"/> <xs:element ref="TaxID" minOccurs="0"/> <xs:element ref="TaxRegistrationReasonCode" minOccurs="0"/> <xs:element ref="CodeBySeller" minOccurs="0"/> <xs:element ref="CodeByBuyer" minOccurs="0"/> <xs:element ref="AccountNumber" minOccurs="0"/> <xs:element ref="UtilizationRegisterNumber" minOccurs="0"/> <xs:element ref="Name" minOccurs="0"/> <xs:element ref="RoomNumber" minOccurs="0"/> <xs:element ref="Housing" minOccurs="0"/> <xs:element ref="HouseNumber" minOccurs="0"/> <xs:element ref="StreetAndNumber" minOccurs="0"/> <xs:element ref="CityName" minOccurs="0"/> <xs:element ref="Locality" minOccurs="0"/> <xs:element ref="District" minOccurs="0"/> <xs:element ref="State" minOccurs="0"/> <xs:element ref="StateCode" minOccurs="0"/> <xs:element ref="PostalCode" minOccurs="0"/> <xs:element ref="Country" minOccurs="0"/> <xs:element ref="CountryCode" minOccurs="0"/> <xs:element ref="Individual" minOccurs="0"/> <xs:element ref="ContactInformation" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Line"> <xs:complexType> <xs:sequence> <xs:element ref="Line-Item"/> <xs:element ref="Line-Order" minOccurs="0"/> <xs:element ref="Line-Reference" minOccurs="0"/> <xs:element ref="Line-Factoring" minOccurs="0"/> <xs:element ref="Line-Delivery" minOccurs="0"/> <xs:element ref="Line-AdditionalInformation" minOccurs="0"/> <xs:element ref="Line-Control" minOccurs="0"/> <xs:element ref="Line-AdditionalData" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Line-Delivery"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element name="DeliveryLocationNumber" type="string13" minOccurs="0"/> <xs:element ref="CodeBySender" minOccurs="0"/> <xs:element ref="CodeByReceiver" minOccurs="0"/> <xs:element ref="TaxID" minOccurs="0"/> <xs:element ref="TaxRegistrationReasonCode" minOccurs="0"/> <xs:element ref="CodeBySeller" minOccurs="0"/> <xs:element ref="CodeByBuyer" minOccurs="0"/> <xs:element ref="UtilizationRegisterNumber" minOccurs="0"/> <xs:element ref="Name" minOccurs="0"/> <xs:element ref="RoomNumber" minOccurs="0"/> <xs:element ref="Housing" minOccurs="0"/> <xs:element ref="HouseNumber" minOccurs="0"/> <xs:element ref="StreetAndNumber" minOccurs="0"/> <xs:element ref="CityName" minOccurs="0"/> <xs:element ref="State" minOccurs="0"/> <xs:element ref="PostalCode" minOccurs="0"/> <xs:element ref="Country" minOccurs="0"/> <xs:element ref="CountryCode" minOccurs="0"/> <xs:element name="DeliveryDate" type="date" default="2007-01-01" minOccurs="0"/> <xs:element name="DespatchNumber" type="string35" minOccurs="0"/> <xs:element ref="BuyerLocationCode" minOccurs="0"/> <xs:element ref="SellerLocationCode" minOccurs="0"/> <xs:element ref="ContactInformation" minOccurs="0"/>

   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="Line-Item">
  <xs:complexType>
   <xs:sequence>
    <xs:element name="LineNumber" type="LineNumber"/>
    <xs:element name="EAN" type="EAN" minOccurs="0"/>
    <xs:element name="BuyerItemCode" type="string35" minOccurs="0"/>
    <xs:element name="SupplierItemCode" type="string175" minOccurs="0"/>
    <xs:element name="GS1DataBar" type="string500" minOccurs="0"/>
    <xs:element name="ItemDescription" type="string500" minOccurs="0"/>
    <xs:element name="ItemType" type="ItemType" minOccurs="0" maxOccurs="1"/>
    <xs:element name="PreviousInvoiceQuantity" type="decimal10-3" minOccurs="0"/>
    <xs:element name="InvoiceQuantity" type="decimal10-3" minOccurs="0"/>
    <xs:element name="OrderedQuantity" type="decimal3" minOccurs="0"/>
    <xs:element name="PreviousInvoiceUnitNetPrice" type="decimal10-4" default="0" minOccurs="0"/>
    <xs:element name="InvoiceUnitNetPrice" type="decimal10-4" default="0" minOccurs="0"/>
    <xs:element name="BuyerUnitNetPrice" type="decimal10-4" default="0" minOccurs="0"/>
    <xs:element name="Discount" type="decimal2" default="0" minOccurs="0"/>
    <xs:element name="InvoiceUnitBasePrice" type="decimal10-4" default="0" minOccurs="0"/>
    <xs:element name="InvoiceUnitGrossPrice" type="decimal10-4" default="0" minOccurs="0"/>
    <xs:element name="BuyerUnitGrossPrice" type="decimal10-4" default="0" minOccurs="0"/>
    <xs:element name="PreviousUnitOfMeasure" type="xs:string" minOccurs="0"/>
    <xs:element name="PreviousUnitOfMeasureCode" type="string9" minOccurs="0"/>
    <xs:element name="UnitOfMeasure" type="xs:string" minOccurs="0"/>
    <xs:element name="UnitOfMeasureCode" type="string9" minOccurs="0"/>
    <xs:element name="InvoicedUnitPackSize" type="decimal10-3" default="0" minOccurs="0"/>
    <xs:element name="SupplierUnitPackSize" type="decimal3" default="0" minOccurs="0"/>
    <xs:element name="PreviousTaxRate" type="TaxRate" minOccurs="0"/>
    <xs:element name="TaxRate" type="TaxRate"/>
    <xs:element name="TaxCategoryCode" type="TaxCategoryCode"/>
    <xs:element ref="TaxReference" minOccurs="0"/>
    <xs:element name="TaxReferenceNumber" type="string140" minOccurs="0" maxOccurs="1"/>
    <xs:element name="PreviousTaxAmount" type="decimal4" default="0" minOccurs="0"/>
    <xs:element ref="TaxAmount"/>
    <xs:element name="DifferenceTaxAmount" type="decimal4" default="0" minOccurs="0"/>
    <xs:element name="PreviousExciseTax" type="decimal10-4" default="0" minOccurs="0"/>
    <xs:element name="ExciseTax" type="decimal10-4" default="0" minOccurs="0"/>
    <xs:element name="DifferenceExciseTax" type="decimal10-4" default="0" minOccurs="0"/>
    <xs:element name="PreviousNetAmount" type="decimal4" minOccurs="0"/>
    <xs:element name="NetAmount" type="decimal4"/>
    <xs:element name="DifferenceNetAmount" type="decimal4" minOccurs="0"/>
    <xs:element name="PreviousGrossAmount" type="decimal4" default="0" minOccurs="0"/>
    <xs:element name="GrossAmount" type="decimal4" default="0" minOccurs="0"/>
    <xs:element name="DifferenceGrossAmount" type="decimal4" default="0" minOccurs="0"/>
    <xs:element name="BatchNumber" type="string175" minOccurs="0"/>
    <xs:element name="SerialNumber" type="string175" minOccurs="0"/>
    <xs:element ref="Remarks" minOccurs="0"/>
    <xs:element name="ExpirationDate" type="date" default="2007-01-01" minOccurs="0"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="Line-Reference">
  <xs:complexType>
   <xs:sequence minOccurs="0">
    <xs:element name="InvoiceReferenceNumber" type="string35" minOccurs="0"/>
    <xs:element name="RefLineNumber" type="string35-1" minOccurs="0"/>
    <xs:element name="InvoiceReferenceDate" type="date" default="2007-01-01" minOccurs="0"/>
    <xs:element ref="ContractNumber" minOccurs="0"/>
    <xs:element ref="ContractDate" minOccurs="0"/>
    <xs:element name="ReceivingAdviceNumber" type="string35" minOccurs="0"/>
    <xs:element name="ReceivingAdviceDate" type="date" default="2007-01-01" minOccurs="0"/>
    <xs:element ref="AdditionalData" minOccurs="0"/>
    <xs:element ref="Reference-Elements" minOccurs="0"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="Line-Factoring">
  <xs:complexType>
   <xs:sequence minOccurs="0">
    <xs:element ref="FactoringCode" minOccurs="0"/>
    <xs:element ref="FactorContractNumber" minOccurs="0"/>
    <xs:element ref="FactorContractDate" minOccurs="0"/>
    <xs:element ref="Remarks" minOccurs="0"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="Line-Order">
  <xs:complexType>
   <xs:sequence minOccurs="0">
    <xs:element name="BuyerOrderNumber" type="string35" minOccurs="0"/>
    <xs:element name="BuyerOrderDate" type="date" default="2007-01-01" minOccurs="0"/>
    <xs:element name="BuyerLineNumber" type="string36" minOccurs="0"/>
    <xs:element ref="Content" minOccurs="0"/>
    <xs:element name="SellerOrderNumber" type="string35" minOccurs="0"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="Line-Control">
  <xs:complexType>
   <xs:sequence minOccurs="0">
    <xs:element name="EanCatalog" type="EanCatalog" minOccurs="0"/>
    <xs:element name="SupplierItemCodeCatalog" type="EanCatalog" minOccurs="0"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="Name" type="string175"/>
 <xs:element name="OperatorDetails">
  <xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element ref="Name" minOccurs="0"/>
    <xs:element ref="TelephoneNumber" minOccurs="0"/>
    <xs:element ref="E-mail" minOccurs="0"/>
    <xs:element ref="CodeBySeller" minOccurs="0"/>
   </xs:choice>
  </xs:complexType>
 </xs:element>
 <xs:element name="SalesRepresentative">
  <xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element ref="SystemUniqueCode" minOccurs="0"/>
    <xs:element ref="Name" minOccurs="0"/>
    <xs:element ref="TelephoneNumber" minOccurs="0"/>
    <xs:element ref="E-mail" minOccurs="0"/>
    <xs:element ref="CodeBySeller" minOccurs="0"/>
   </xs:choice>
  </xs:complexType>
 </xs:element>
 <xs:element name="Payee">
  <xs:complexType>
   <xs:sequence minOccurs="0">
    <xs:element ref="ILN"/>
    <xs:element ref="CodeBySender" minOccurs="0"/>
    <xs:element ref="CodeByReceiver" minOccurs="0"/>
    <xs:element ref="TaxID" minOccurs="0"/>
    <xs:element ref="TaxRegistrationReasonCode" minOccurs="0"/>
    <xs:element ref="AccountNumber" minOccurs="0"/>
    <xs:element ref="UtilizationRegisterNumber" minOccurs="0"/>
    <xs:element ref="CodeBySeller" minOccurs="0"/>
    <xs:element ref="CodeByBuyer" minOccurs="0"/>
    <xs:element ref="Name" minOccurs="0"/>
    <xs:element ref="RoomNumber" minOccurs="0"/>
    <xs:element ref="Housing" minOccurs="0"/>
    <xs:element ref="HouseNumber" minOccurs="0"/>
    <xs:element ref="StreetAndNumber" minOccurs="0"/>
    <xs:element ref="CityName" minOccurs="0"/>
    <xs:element ref="Locality" minOccurs="0"/>
    <xs:element ref="District" minOccurs="0"/>
    <xs:element ref="State" minOccurs="0"/>
    <xs:element ref="StateCode" minOccurs="0"/>
    <xs:element ref="PostalCode" minOccurs="0"/>
    <xs:element ref="Country" minOccurs="0"/>
    <xs:element ref="CountryCode" minOccurs="0"/>
    <xs:element ref="Individual" minOccurs="0"/>
    <xs:element ref="ContactInformation" minOccurs="0"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="Payer">
  <xs:complexType>
   <xs:sequence>
    <xs:element ref="ILN"/>
    <xs:element ref="CodeBySender" minOccurs="0"/>
    <xs:element ref="CodeByReceiver" minOccurs="0"/>
    <xs:element ref="TaxID" minOccurs="0"/>
    <xs:element ref="TaxRegistrationReasonCode" minOccurs="0"/>
    <xs:element ref="CodeBySeller" minOccurs="0"/>
    <xs:element ref="CodeByBuyer" minOccurs="0"/>
    <xs:element ref="AccountNumber" minOccurs="0"/>
    <xs:element ref="UtilizationRegisterNumber" minOccurs="0"/>
    <xs:element ref="Name" minOccurs="0"/>
    <xs:element ref="RoomNumber" minOccurs="0"/>
    <xs:element ref="Housing" minOccurs="0"/>
    <xs:element ref="HouseNumber" minOccurs="0"/>
    <xs:element ref="StreetAndNumber" minOccurs="0"/>
    <xs:element ref="CityName" minOccurs="0"/>
    <xs:element ref="Locality" minOccurs="0"/>
    <xs:element ref="District" minOccurs="0"/>
    <xs:element ref="State" minOccurs="0"/>
    <xs:element ref="StateCode" minOccurs="0"/>
    <xs:element ref="PostalCode" minOccurs="0"/>
    <xs:element ref="Country" minOccurs="0"/>
    <xs:element ref="CountryCode" minOccurs="0"/>
    <xs:element ref="Individual" minOccurs="0"/>
    <xs:element ref="ContactInformation" minOccurs="0"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="Locality" type="string140"/>
 <xs:element name="District" type="string140"/>
 <xs:element name="StateCode" type="string9"/>
 <xs:element name="PostalCode" type="string9"/>
 <xs:element name="ContractNumber" type="string175"/>
 <xs:element name="State" type="string140"/>
 <xs:element name="ContractDate" type="date" default="2007-01-01"/>
 <xs:element name="FactorContractDate" type="date" default="2007-01-01"/>
 <xs:element name="FactoringCode" type="string35"/>
 <xs:element name="FactorContractNumber" type="string175"/>
 <xs:element name="BuyerLocationCode" type="string35"/>
 <xs:element name="SellerLocationCode" type="string6"/>
 <xs:element name="Remarks" type="string500"/>
 <xs:element name="RoomNumber" type="string20"/>
 <xs:element name="Housing" type="string20"/>
 <xs:element name="HouseNumber" type="string20"/>
 <xs:element name="StreetAndNumber" type="string140"/>
 <xs:element name="SystemUniqueCode" type="string35"/>
 <xs:element name="TaxAmount" type="decimal4" default="0"/>
 <xs:element name="TaxID" type="string35"/>
 <xs:element name="TaxRegistrationReasonCode" type="string35"/>
 <xs:element name="TaxReference">
  <xs:complexType>
   <xs:sequence minOccurs="0">
    <xs:element name="ReferenceType" type="string5" minOccurs="0"/>
    <xs:element name="ReferenceNumber" type="string20-1" minOccurs="0"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="Tax-Summary">
  <xs:complexType>
   <xs:sequence maxOccurs="unbounded">
    <xs:element ref="Tax-Summary-Line"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="Tax-Summary-Line">
  <xs:complexType>
   <xs:sequence>
    <xs:element name="TaxRate" type="TaxRate"/>
    <xs:element name="TaxCategoryCode" type="TaxCategoryCode"/>
    <xs:element ref="TaxAmount"/>
    <xs:element name="TaxableAmount" type="decimal4"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="TelephoneNumber" type="string35"/>
 <! -- Individual -->
 <xs:element name="Individual">
  <xs:complexType>
   <xs:sequence>
    <xs:element ref="FirstName" minOccurs="0"/>
    <xs:element ref="LastName" minOccurs="0"/>
    <xs:element ref="PatronymicName" minOccurs="0"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="FirstName" type="string35"/>
 <xs:element name="LastName" type="string35"/>
 <xs:element name="PatronymicName" type="string35"/>
 <! -- Document-Attachments -->
 <xs:element name="Document-Attachments">
  <xs:complexType>
   <xs:sequence maxOccurs="unbounded">
    <xs:element ref="Document-File"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="Document-File">
  <xs:complexType>
   <xs:sequence>
    <xs:element name="Attachment-Type" type="Attachment-Type"/>
    <xs:element name="Content-Type" type="string70" minOccurs="0"/>
    <xs:element name="Content-Encoding" type="Content-Encoding" default="identity" minOccurs="0"/>
    <xs:element name="File-Name" type="string175" minOccurs="0"/>
    <xs:element ref="Content" minOccurs="0"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <! -- Reference-Elements -->
 <xs:element name="Reference-Elements">
  <xs:complexType>
   <xs:sequence maxOccurs="unbounded">
    <xs:element ref="Reference-Element"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="Reference-Element">
  <xs:complexType>
   <xs:sequence>
    <xs:element name="Reference-Type" type="string3"/>
    <xs:element name="Reference-Id" type="string150" minOccurs="0"/>
    <xs:element name="Reference-Date" type="date" default="2007-01-01" minOccurs="0"/>
    <xs:element ref="AdditionalData" minOccurs="0"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:element name="Line-AdditionalInformation">
  <xs:complexType>
   <xs:sequence>
    <xs:element name="CountryOfOrigin" type="string9" minOccurs="0"/>
    <xs:element name="CountryOfOriginCode" type="string9" minOccurs="0"/>
    <xs:element name="DutyRegimeTypeCode" type="string3" minOccurs="0"/>
    <xs:element name="SpecialConditionCode1" type="string3" minOccurs="0"/>
    <xs:element name="SpecialConditionCode2" type="string3" minOccurs="0"/>
    <xs:element name="SpecialConditionCode3" type="string3" minOccurs="0"/>
    <xs:element name="SpecialConditionCode4" type="string3" minOccurs="0"/>
    <xs:element name="SpecialConditionCode5" type="string3" minOccurs="0"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <! -- Signer -->
 <xs:element name="Signer">
  <xs:complexType>
   <xs:sequence>
    <xs:element ref="TaxID" minOccurs="0"/>
    <xs:element name="Requisites" type="string175" minOccurs="0"/>
    <xs:element name="JobPosition" type="string35" minOccurs="0"/>
    <xs:element ref="FirstName" minOccurs="0"/>
    <xs:element ref="LastName" minOccurs="0"/>
    <xs:element ref="PatronymicName" minOccurs="0"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <! -- Types -->
 <! -- NMTOKEN -->
 <xs:simpleType name="TaxRate">
  <xs:restriction base="xs:string">
   <xs:maxLength value="7"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="DocumentSource">
  <xs:restriction base="xs:NMTOKEN">
   <xs:enumeration value="W"/>
   <xs:enumeration value="S"/>
   <xs:enumeration value="F"/>
   <xs:enumeration value="E"/>
   <xs:enumeration value="O"/>
   <xs:enumeration value="A"/>
   <xs:enumeration value="P"/>
   <xs:enumeration value="H"/>
   <xs:enumeration value="J"/>
   <xs:enumeration value="T"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="FnsEnable">
  <xs:restriction base="xs:NMTOKEN">
   <xs:enumeration value="Y"/>
   <xs:enumeration value="N"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="DocumentFunctionCode">
  <xs:restriction base="xs:NMTOKEN">
   <xs:enumeration value="3"/>
   <xs:enumeration value="4"/>
   <xs:enumeration value="7"/>
   <xs:enumeration value="9"/>
   <xs:enumeration value="O"/>
   <xs:enumeration value="C"/>
   <! --  <xs:enumeration value="R" /> -->
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="EanCatalog">
  <xs:restriction base="xs:NMTOKEN">
   <xs:enumeration value="SR"/>
   <xs:enumeration value="SS"/>
   <xs:enumeration value="RS"/>
   <xs:enumeration value="RR"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="TaxCategoryCode">
  <xs:restriction base="xs:NMTOKEN">
   <xs:enumeration value="S"/>
   <xs:enumeration value="E"/>
   <xs:enumeration value="Z"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="Attachment-Type">
  <xs:restriction base="xs:NMTOKEN">
   <xs:enumeration value="A"/>
   <xs:enumeration value="O"/>
   <! --   A- Attachment, O-Original -->
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="Content-Encoding">
  <xs:restriction base="xs:NMTOKEN">
   <xs:enumeration value="identity"/>
   <xs:enumeration value="base64"/>
   <! --  identity - without transformations -->
  </xs:restriction>
 </xs:simpleType>
 <! -- PATTERN -->
 <xs:simpleType name="date">
  <xs:restriction base="xs:date">
   <xs:pattern value="[0-9]{4}-[0-9]{2}-[0-9]{2}"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="EAN">
  <xs:restriction base="xs:string">
   <xs:pattern value="[0-9]{0,15}"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="ILN">
  <xs:restriction base="xs:string">
   <xs:pattern value="[0-9]{13}"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="InvoiceCurrency">
  <xs:restriction base="xs:string">
   <xs:pattern value="[A-Z]{3}"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="InvoicePaymentTerms">
  <xs:restriction base="xs:integer">
   <xs:pattern value="([0-9]|\+|\-|E|e|\.){1,5}"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="LineNumber">
  <xs:restriction base="xs:float">
   <xs:pattern value="([0-9]|\+|\-|E|e|\.){1,5}"/>
  </xs:restriction>
 </xs:simpleType>
 <! -- DECIMAL -->
 <xs:simpleType name="decimal10-3">
  <xs:restriction base="xs:decimal">
   <xs:totalDigits value="10"/>
   <xs:fractionDigits value="3"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="decimal10-4">
  <xs:restriction base="xs:decimal">
   <xs:totalDigits value="10"/>
   <xs:fractionDigits value="4"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="decimal2">
  <xs:restriction base="xs:decimal">
   <xs:totalDigits value="12"/>
   <xs:fractionDigits value="2"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="decimal3">
  <xs:restriction base="xs:decimal">
   <xs:totalDigits value="12"/>
   <xs:fractionDigits value="3"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="decimal4">
  <xs:restriction base="xs:decimal">
   <xs:totalDigits value="15"/>
   <xs:fractionDigits value="4"/>
  </xs:restriction>
 </xs:simpleType>
 <! -- STRING -->
 <xs:simpleType name="string1">
  <xs:restriction base="xs:string">
   <xs:maxLength value="1"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string3">
  <xs:restriction base="xs:string">
   <xs:maxLength value="3"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string5">
  <xs:restriction base="xs:string">
   <xs:maxLength value="5"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string6">
  <xs:restriction base="xs:string">
   <xs:maxLength value="6"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string9">
  <xs:restriction base="xs:string">
   <xs:maxLength value="9"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string13">
  <xs:restriction base="xs:string">
   <xs:maxLength value="13"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string14">
  <xs:restriction base="xs:string">
   <xs:maxLength value="14"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string18-1">
  <xs:restriction base="xs:string">
   <xs:maxLength value="18"/>
   <xs:minLength value="1"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string20">
  <xs:restriction base="xs:string">
   <xs:maxLength value="20"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string20-1">
  <xs:restriction base="xs:string">
   <xs:maxLength value="20"/>
   <xs:minLength value="1"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string35">
  <xs:restriction base="xs:string">
   <xs:maxLength value="35"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string35-1">
  <xs:restriction base="xs:string">
   <xs:maxLength value="35"/>
   <xs:minLength value="1"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string36">
  <xs:restriction base="xs:string">
   <xs:maxLength value="36"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string37">
  <xs:restriction base="xs:string">
   <xs:maxLength value="37"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string38">
  <xs:restriction base="xs:string">
   <xs:maxLength value="38"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string50">
  <xs:restriction base="xs:string">
   <xs:maxLength value="50"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string70">
  <xs:restriction base="xs:string">
   <xs:maxLength value="70"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string100">
  <xs:restriction base="xs:string">
   <xs:maxLength value="100"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string140">
  <xs:restriction base="xs:string">
   <xs:maxLength value="140"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string150">
  <xs:restriction base="xs:string">
   <xs:maxLength value="150"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string175">
  <xs:restriction base="xs:string">
   <xs:maxLength value="175"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string250">
  <xs:restriction base="xs:string">
   <xs:maxLength value="250"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string300">
  <xs:restriction base="xs:string">
   <xs:maxLength value="300"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string350">
  <xs:restriction base="xs:string">
   <xs:maxLength value="350"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="string500">
  <xs:restriction base="xs:string">
   <xs:maxLength value="500"/>
   <xs:minLength value="0"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="ItemType">
  <xs:restriction base="xs:NMTOKEN">
   <xs:enumeration value="CU"/>
   <xs:enumeration value="RC"/>
   <xs:enumeration value="SV"/>
  </xs:restriction>
 </xs:simpleType>
</xs:schema>