AddPurchaseOrder - xsd

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="PurchaseOrderHeader">
    <xs:complexType>
      <xs:sequence>
        <xs:element type="xs:short" name="PurchaseOrderYear" minOccurs="1"/>
        <xs:element type="xs:string" name="PurchaseOrderBook" minOccurs="1"/>
        <xs:element type="xs:int" name="PurchaseOrderNumber" minOccurs="0"/>
        <xs:element type="xs:string" name="SupplierID" minOccurs="1"/>
        <xs:element type="xs:string" name="CustomerID" minOccurs="0"/>
        <xs:element type="xs:string" name="Status" minOccurs="0"/>
        <xs:element type="xs:string" name="Document" minOccurs="0"/>
        <xs:element type="xs:dateTime" name="OrderDate" minOccurs="0"/>
        <xs:element type="xs:string" name="CostUnitID" minOccurs="0"/>
        <xs:element type="xs:string" name="CostCenterID" minOccurs="0"/>   
        <xs:element type="xs:string" name="ClerkID" minOccurs="0"/>
        <xs:element type="xs:string" name="WorkOrderID" minOccurs="0"/>
        <xs:element type="xs:string" name="AnalyticID" minOccurs="0"/>
        <xs:element type="xs:string" name="AnalyticAN1ID" minOccurs="0"/>
        <xs:element type="xs:string" name="AnalyticAN2ID" minOccurs="0"/>
        <xs:element type="xs:string" name="AnalyticAN3ID" minOccurs="0"/>
        <xs:element type="xs:float" name="NetAmountOrder" minOccurs="0"/>
        <xs:element type="xs:float" name="GrossAmountOrder" minOccurs="0"/>
        <xs:element type="xs:float" name="RebateAmountOrder" minOccurs="0"/>
        <xs:element type="xs:float" name="DiscountAmountOrder" minOccurs="0"/>
        <xs:element type="xs:float" name="NetAmountOrderSupplier" minOccurs="0"/>
        <xs:element type="xs:float" name="GrossAmountOrderSupplier" minOccurs="0"/>
        <xs:element type="xs:float" name="RebateAmountOrderSupplier" minOccurs="0"/>
        <xs:element type="xs:float" name="DiscountAmountOrderSupplier" minOccurs="0"/>
        <xs:element type="xs:string" name="DocumentState" minOccurs="0"/>
        <xs:element type="xs:string" name="DocumentStateDescription" minOccurs="0"/>
      
        <xs:element type="xs:dateTime" name="ForeseenDeliveryDate" minOccurs="0"/>
        <xs:element type="xs:dateTime" name="SentDate" minOccurs="0"/>
        <xs:element type="xs:string" name="SentDocument" minOccurs="0"/>
        <xs:element type="xs:string" name="SentAttachment" minOccurs="0"/>
        <xs:element type="xs:dateTime" name="PickedDateFirst" minOccurs="0"/>
        <xs:element type="xs:dateTime" name="PickedDateLast" minOccurs="0"/>
        <xs:element type="xs:string" name="PickedNote" minOccurs="0"/>
        <xs:element type="xs:dateTime" name="ClosedDate" minOccurs="0"/>
        <xs:element type="xs:string" name="ClosedNote" minOccurs="0"/>
        <xs:element type="xs:dateTime" name="CanceledDate" minOccurs="0"/>
        <xs:element type="xs:string" name="CanceledNote" minOccurs="0"/>
        <xs:element type="xs:short" name="CurrencyID" minOccurs="0"/>
        <xs:element type="xs:float" name="RebatePercentage" minOccurs="0"/>
        <xs:element type="xs:string" name="NoteHeader" minOccurs="0"/>
        <xs:element type="xs:string" name="NoteFooter" minOccurs="0"/>
        <xs:element type="xs:string" name="Note" minOccurs="0"/>
        <xs:element type="xs:string" name="ClerkIDSupplier" minOccurs="0"/>
        <xs:element type="xs:int" name="SearchKeySeq" minOccurs="0"/>
        <xs:element type="xs:string" name="PriceListID" minOccurs="0"/>
        <xs:element type="xs:string" name="WHType2ID" minOccurs="0"/>
        <xs:element type="xs:string" name="WarehouseID" minOccurs="0"/>
        <xs:element type="xs:string" name="LanguageID" minOccurs="0"/>
        <xs:element type="xs:dateTime" name="EstimatedpayDate" minOccurs="0"/>
        <xs:element type="xs:string" name="DeliveryType" minOccurs="0"/>
        <xs:element type="xs:string" name="ParityCode" minOccurs="0"/>
        <xs:element type="xs:dateTime" name="IwareDate" minOccurs="0"/>
        <xs:element type="xs:float" name="ExchangeRateID" minOccurs="0"/>
        <xs:element type="xs:dateTime" name="SignedPRACDate" minOccurs="0"/>
        <xs:element type="xs:string" name="AnnexID" minOccurs="0"/>
        <xs:element type="xs:string" name="ApprovingStatus" minOccurs="0"/>
        <xs:element type="xs:string" name="DiscountGroupID" minOccurs="0"/>
        <xs:element type="xs:string" name="FolderID" minOccurs="0"/>
        <xs:element type="xs:string" name="ApprovingDocument" minOccurs="0"/>
        <xs:element type="xs:string" name="InsertedBy" minOccurs="0"/>
 <xs:element type="xs:dateTime" name="InsertedTime" minOccurs="0"/>
        <xs:element type="xs:string" name="ModifiedBy" minOccurs="0"/>
 <xs:element type="xs:dateTime" name="ModifiedTime" minOccurs="0"/>
        <xs:element type="xs:string" name="ApprovedState" minOccurs="0"/>
        <xs:element type="xs:string" name="ApprovedStateDescription" minOccurs="0"/>
        <xs:element type="xs:dateTime" name="ApprovedDate" minOccurs="0"/>
        <xs:element type="xs:string" name="ApprovedNote" minOccurs="0"/>
        <xs:element type="xs:dateTime" name="ApprovedDeliveryDate" minOccurs="0"/>
        <xs:element type="xs:string" name="AttachmentID" minOccurs="0"/>
        <xs:element name="PurchaseOrderLines">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PurchaseOrderLine" maxOccurs="unbounded" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:int" name="LineSEQNumber" minOccurs="1"/>
                    <xs:element type="xs:string" name="ItemID"/>
                    <xs:element type="xs:string" name="ItemIDType" minOccurs="0"/>
                    <xs:element type="xs:float" name="OrderedQuantity" minOccurs="0"/>
                    <xs:element type="xs:float" name="Price" minOccurs="0"/>
                    <xs:element type="xs:float" name="QuantitySupplier" minOccurs="0"/>
                    <xs:element type="xs:string" name="UnitOfMeasureSupplier" minOccurs="0"/>
                    <xs:element type="xs:float" name="PriceSupplier" minOccurs="0"/>
                    <xs:element type="xs:float" name="DiscountPercentage" minOccurs="0"/>
                    <xs:element type="xs:dateTime" name="ForeseenDeliveryDate" minOccurs="0"/>
                    <xs:element type="xs:string" name="CostCenterID" minOccurs="0"/>
                    <xs:element type="xs:string" name="CostUnitID" minOccurs="0"/>
                    <xs:element type="xs:string" name="ClerkID" minOccurs="0"/>
                    <xs:element type="xs:string" name="WorkOrderID" minOccurs="0"/>
                    <xs:element type="xs:string" name="AnalyticID" minOccurs="0"/>
                    <xs:element type="xs:string" name="Note" minOccurs="0"/>                    <xs:element type="xs:string" name="InsertedBy" minOccurs="0"/>
             <xs:element type="xs:dateTime" name="InsertedTime" minOccurs="0"/>
                    <xs:element type="xs:string" name="ModifiedBy" minOccurs="0"/>
             <xs:element type="xs:dateTime" name="ModifiedTime" minOccurs="0"/>
                    <xs:element type="xs:string" name="ItemIDSupplier" minOccurs="0"/>
                    <xs:element type="xs:string" name="ItemTitle1Supplier" minOccurs="0"/>
                    <xs:element type="xs:string" name="ItemTitle2Supplier" minOccurs="0"/>  
                    <xs:element type="xs:string" name="Description" minOccurs="0"/>
                    <xs:element type="xs:string" name="ItemEAN" minOccurs="0"/>
                    <xs:element type="xs:string" name="AlternateEAN" minOccurs="0"/>  
                    <xs:element type="xs:string" name="AlternateUnitOfMeasure" minOccurs="0"/>                    <xs:element type="xs:float" name="AlternateConvertFactor" minOccurs="0"/>
                    <xs:element type="xs:float" name="AlternateQuantity" minOccurs="0"/>
                    <xs:element type="xs:float" name="PricePerUnitSupplier" minOccurs="0"/>
                    <xs:element type="xs:float" name="PricePerUnitDDE" minOccurs="0"/>
                    <xs:element type="xs:float" name="PricePerUnitOrder" minOccurs="0"/>
                    <xs:element type="xs:float" name="PricePerUnitNDE" minOccurs="0"/>
                    <xs:element type="xs:string" name="ItemTitle1" minOccurs="0"/>
                    <xs:element type="xs:string" name="ItemTitle2" minOccurs="0"/>  
                    <xs:element type="xs:string" name="Status" minOccurs="0"/> 
                    <xs:element type="xs:float" name="IntermediateAmountOrdered" minOccurs="0"/>
                    <xs:element type="xs:float" name="IntermediateAmountSupplier" minOccurs="0"/>
                    <xs:element type="xs:string" name="UnitOfMeasure" minOccurs="0"/>
                    <xs:element type="xs:string" name="ItemComparisonCode" minOccurs="0"/>
                    <xs:element type="xs:float" name="DimensionQuantity" minOccurs="0"/>
                    <xs:element type="xs:float" name="DimensionLenght" minOccurs="0"/>
                    <xs:element type="xs:float" name="DimensionWidth" minOccurs="0"/>
                    <xs:element type="xs:float" name="DimensionHeight" minOccurs="0"/>                    <xs:element type="xs:float" name="NetAmountOrdered" minOccurs="0"/>
                    <xs:element type="xs:float" name="NetAmountSupplier" minOccurs="0"/>                    <xs:element type="xs:float" name="GrossAmountOrdered" minOccurs="0"/>
                    <xs:element type="xs:float" name="GrossAmountSupplier" minOccurs="0"/>
                    <xs:element type="xs:float" name="DiscountPercentage2" minOccurs="0"/>
                    <xs:element type="xs:float" name="DiscountPercentage3" minOccurs="0"/>
                    <xs:element type="xs:float" name="DiscountPercentage4" minOccurs="0"/>
                    <xs:element type="xs:float" name="DiscountPercentage5" minOccurs="0"/>
                    <xs:element type="xs:float" name="QuantityForTesting" minOccurs="0"/>                    <xs:element type="xs:string" name="CanceledLine" minOccurs="0"/>
                    <xs:element type="xs:string" name="TextLine" minOccurs="0"/>
                    <xs:element type="xs:string" name="PickedLine" minOccurs="0"/>
                    <xs:element type="xs:float" name="NumberOfPackages" minOccurs="0"/>
                    <xs:element type="xs:float" name="OrderedQuantitySent" minOccurs="0"/>
                    <xs:element type="xs:string" name="Series" minOccurs="0"/>
                    <xs:element type="xs:dateTime" name="EstimatedSupplyDate" minOccurs="0"/>
                    <xs:element type="xs:float" name="QuantitySupplierUOMSent" minOccurs="0"/>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

Natisni