<?xml version="1.0" encoding="utf-8"?>
<!--
        
        ** OAGIS® Revision: 9.1  **
        ** Date: 11 May 2007 **
        ** Copyright 1997-2007, All Rights Reserved **
        
        This is an OAGIS® BOD XML Schema (XSD) Definition.
        
       License information for this file is provided in the file **OAGi License Agreement.txt** that is provided with this download package.
        
        For support, more information, or to report implementation bugs, please contact the Open Applications Group at xml@openapplications.org.
        
        XML Schema 
        
-->
 
<!--
© Copyright 2007 Infor Global Solutions Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. The 
word and design marks set forth herein are trademarks and/or registered trademarks of Infor Global Solutions 
Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. All other trademarks listed herein 
are the property of their respective owners.
 
-->
 
<!--    *****     Update Log     *****
 
Date          By      Note
10 Apr 2008    JB      Added correct Copyright and update comments to schema.
 
        *****     Update End     *****
 
-->


<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns="http://schema.infor.com/InforOAGIS/2"
        targetNamespace="http://schema.infor.com/InforOAGIS/2" elementFormDefault="qualified"
        attributeFormDefault="unqualified">

        <xsd:include schemaLocation="../Components/Operational/OrderManagementComponents.xsd"/>

        <xsd:element name="Transfer" type="TransferItemType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The
                                Transfer is an order to be filled and shipped to another
                                location where it is received within the same corporate entity. </xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="TransferHeader" type="TransferHeaderType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Provides
                                information that pertains to the entire Transfer.
                        </xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="TransferLine" type="TransferLineType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Provides
                                the line level detail of the items ordered by the Transfer and the
                                associated detail.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="TransferSubLine" type="TransferSubLineType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The
                                Component Subline represents any additional information concerning
                                the product on the Line. The Subline can be used to describe a
                                specific configuration of the ordered item.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:complexType name="TransferItemType">
                <xsd:annotation>
                        <xsd:documentation>The schema type for Transfer. The base abstract type,
                                Order, is shared with PurchaseOrder and SalesOrder. Transfer is
                                essentially an extension of PurchaseOrder, but in order to use the
                                local-global design pattern, each of Transfer, PO and SO needs to
                                instantiate its own Header and Line elements.To do this, we factored
                                out the PO content models, instantiated both PO and SO from Order.</xsd:documentation>
                </xsd:annotation>
                <xsd:sequence>
                        <xsd:element ref="TransferHeader" minOccurs="0"/>
                        <xsd:element ref="TransferLine" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
        </xsd:complexType>
        <xsd:complexType name="TransferHeaderType">
                <xsd:complexContent>
                        <xsd:extension base="TransferProcurementHeaderType">
                                <xsd:sequence>
                                        <xsd:element ref="BackOrderIndicator" minOccurs="0"/>
                                        <xsd:element ref="DistributionCenterCode" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://schema.infor.com/InforOAGIS/2"
                                                  >Indicates the DistributionCenter
                                                  that the Seller will ship the items
                                                  from.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="PurchaseOrderReference" minOccurs="0"
                                                maxOccurs="unbounded">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://schema.infor.com/InforOAGIS/2"
                                                  >Indicates the purchase order in the
                                                  distribution center that is
                                                  associated with the goods allocated
                                                  to this transfer.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>
        <xsd:complexType name="TransferLineType">
                <xsd:annotation>
                        <xsd:documentation>Is the Transfer Line type that provides the structure of
                                the transfer Line.</xsd:documentation>
                </xsd:annotation>
                <xsd:complexContent>
                        <xsd:extension base="OrderLineType">
                                <xsd:sequence>
                                        <xsd:element ref="BackOrderIndicator" minOccurs="0"/>
                                        <xsd:element ref="PurchaseOrderReference" minOccurs="0"/>
                                        <xsd:element ref="RouteReference" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="BOMReference" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="ScheduledDeliveryDateTime"
                                                minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation>The scheduled delivery
                                                  date provided by the supplier.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="ActualDeliveryDateTime" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation>Is the actual delivery date and
                                                  time of the line item.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="ActualShipDateTime" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://www.openapplications.org/oagis"
                                                  >Inidicates the shipping date and
                                                  time of the line item.</xsd:documentation>
                                                  <xsd:documentation
                                                  source="http://www.openapplications.org/oagis"
                                                  >Inidicates the shipping date and
                                                  time of the line
                                                  item.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="ShippedQuantity" minOccurs="0"/>
                                        <xsd:element ref="ShippedBaseUOMQuantity" minOccurs="0"/>
                                        <xsd:element ref="ReceivedQuantity" minOccurs="0"/>
                                        <xsd:element ref="ReceivedBaseUOMQuantity" minOccurs="0"/>
                                        <xsd:element ref="DistributionCenterCode" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://www.openapplications.org/oagis"
                                                  >Indicates the distribution center
                                                  the line item will be shipped
                                                  from.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="TransferSubLine" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>
        
        <xsd:complexType name="TransferSubLineType">
                <xsd:complexContent>
                        <xsd:extension base="RequestSubLineType">
                                <xsd:sequence>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>

</xsd:schema>
