<?xml version="1.0" encoding="UTF-8"?>
<!--
        Infor messages based upon the Open Applications Group OAGIS standard BODs. 
        For more information about the Open Applications Group please see
        www.openapplications.org
        
        
        ** Revision: Infor version 1.0   ** based on OAGIS 9.0** 
        ** Date: Aug 2006 **
        Infor Global Solutions and Open Applications Group
        Copyright 1995-2004, All Rights Reserved
        
        License information for this file is provided in LICENSE.TXT
        For support, more information, or to report implementation bugs,
        please contact the Open Applications Group at xml@openapplications.org
        
        Name: \OAGIS\9.0\Resources\Nouns\TransferSale.xsd
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:oa="http://www.openapplications.org/oagis/9" xmlns="http://schema.infor.com/Infor1.0"
        targetNamespace="http://schema.infor.com/Infor1.0" elementFormDefault="qualified"
        attributeFormDefault="unqualified">

        <xsd:import namespace="http://www.openapplications.org/oagis/9"  schemaLocation="../../../9.0/Resources/Components/Operational/OrderManagementComponents.xsd"/>
        <xsd:include schemaLocation="../Components/Operational/OrderManagementComponents.xsd"/>

        <xsd:element name="TransferSale" type="TransferSaleType">
                <xsd:annotation>
                        <xsd:documentation source="http://www.openapplications.org/oagis/9">The
                                Transfer Sale is an order to be filled and shipped to another
                                location within the same corporate entity. </xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="TransferSaleHeader" type="TransferSaleHeaderType">
                <xsd:annotation>
                        <xsd:documentation source="http://www.openapplications.org/oagis/9">Provides
                                information that pertains to the entire Transfer.
                        </xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="TransferSaleLine" type="TransferSaleLineType">
                <xsd:annotation>
                        <xsd:documentation source="http://www.openapplications.org/oagis/9">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="TransferSaleSubLine" type="TransferSaleSubLineType">
                <xsd:annotation>
                        <xsd:documentation source="http://www.openapplications.org/oagis/9">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:element name="TransferSaleSchedule" type="TransferSaleScheduleType">
                <xsd:annotation>
                        <xsd:documentation source="http://www.openapplications.org/oagis/9"
                                >Indicates the schedule for the delivery of this line
                        item.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:complexType name="TransferSaleType">
                <xsd:annotation>
                        <xsd:documentation>The schema type for TransferSale. 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:documentation source="http://www.openapplications.org/oagis/9">Sees an
                                order from end to end...</xsd:documentation>
                </xsd:annotation>
                <xsd:sequence>
                        <xsd:element ref="TransferSaleHeader" minOccurs="0"/>
                        <xsd:element ref="TransferSaleLine" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
        </xsd:complexType>
        <xsd:complexType name="TransferSaleHeaderType">
                <xsd:complexContent>
                        <xsd:extension base="TransferHeaderType">
                                <xsd:sequence>
                                        <xsd:element ref="oa:BackOrderIndicator" minOccurs="0"/>
                                        <xsd:element ref="oa:DistributionCenterCode" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://www.openapplications.org/oagis/9"
                                                  >Indicates the DistributionCenter
                                                  that the Seller will ship the items
                                                  from.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="oa:PurchaseOrderReference" minOccurs="0"
                                                maxOccurs="unbounded">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://www.openapplications.org/oagis/9"
                                                  >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="oa:UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>
        <xsd:complexType name="TransferSaleLineType">
                <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="oa:OrderLineType">
                                <xsd:sequence>
                                        <xsd:element ref="oa:BackOrderIndicator" minOccurs="0"/>
                                        <xsd:element ref="oa:PurchaseOrderReference" minOccurs="0"/>
                                        <xsd:element ref="oa:RouteReference" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="oa:BOMReference" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="oa:PromisedDeliveryDateTime" minOccurs="0"/>
                                        <xsd:element ref="oa:ScheduledDeliveryDateTime"
                                                minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation>The scheduled delivery
                                                  date provided by the supplier.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="oa: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="oa: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="oa: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="TransferSaleSubLine" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="TransferSaleSchedule" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="oa:UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>
        <xsd:complexType name="TransferSaleSubLineType">
                <xsd:complexContent>
                        <xsd:extension base="oa:RequestSubLineType">
                                <xsd:sequence>
                                        <xsd:element ref="oa:UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>
        <xsd:complexType name="TransferSaleScheduleType">
                <xsd:complexContent>
                        <xsd:extension base="oa:ProcurementScheduleType">
                                <xsd:sequence>
                                        <xsd:element ref="oa:BackOrderIndicator" minOccurs="0"/>
                                        <xsd:element ref="oa:PurchaseOrderReference" minOccurs="0"/>
                                        <xsd:element ref="oa:UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>
</xsd:schema>
