<?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
        03 Jun 2011           NO       Added new noun based upon Transfer (JIRA BOD-1569)
        
        *****     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="PlannedTransfer" type="PlannedTransferItemType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">A planning concept in which planning data 
                                is handled in the form of orders.  In order planning, supply is planned in the form of planned orders.
                                LN takes into account the start and finish dates of individual planned orders.  For production planning, this 
                                method considers all material and capacity requirements, as recorded in an item's BOM and routing.
                                These planned orders can be firmed, confirmed and transferred into execution level orders (purchase, 
                                production and warehouse transfers).  Transferring the planned order means: execution order gets created 
                                and planned order gets deleted. Identifier of planned order and execution order do not match, they are 
                                separate entities.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="PlannedTransferHeader" type="PlannedTransferHeaderType">
                <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="PlannedTransferLine" type="PlannedTransferLineType">
                <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="PlannedTransferSubLine" type="PlannedTransferSubLineType">
                <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="PlannedTransferItemType">
                <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="PlannedTransferHeader" minOccurs="0"/>
                        <xsd:element ref="PlannedTransferLine" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
        </xsd:complexType>
        <xsd:complexType name="PlannedTransferHeaderType">
                <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="PlannedTransferLineType">
                <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="ReceivedQuantity" 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="PlannedTransferSubLine" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>
        
        <xsd:complexType name="PlannedTransferSubLineType">
                <xsd:complexContent>
                        <xsd:extension base="RequestSubLineType">
                                <xsd:sequence>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>
        
</xsd:schema>
