<?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.
    
-->

<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/LogisticsComponents.xsd"/>
    <xsd:include schemaLocation="../Common/Components.xsd"/>

    <xsd:element name="ItemSubLine" type="ItemSubLineType" 
    substitutionGroup="oa:ItemSubLine" />
    
    <xsd:element name="ShipmentUnitItem" type="ShipmentUnitItemType" 
        substitutionGroup="oa:ShipmentUnitItem" />
    
    <xsd:complexType name="ShipmentUnitContainerType">
        <xsd:complexContent>
            <xsd:annotation>
                <xsd:documentation xml:lang="en">This is an indicator that the container is
                    returnable. If not provided, the assumption should be that the container is not
                    returnable.</xsd:documentation>
            </xsd:annotation>
            <xsd:extension base="oa:ShipmentUnitContainerType">
                <xsd:attribute name="returnable" type="oa:IndicatorType" use="optional"/>

            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    
    <xsd:complexType name="ShipmentUnitItemType">
        <xsd:complexContent>
            <xsd:extension base="oa:ShipmentUnitItemType">
                <xsd:sequence>
                    <xsd:element ref="oa:SerializedLot" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    
    <xsd:complexType name="ItemSubLineType">
        <xsd:complexContent>
            <xsd:annotation>
                <xsd:documentation xml:lang="en">This is an indicator that the container is
                    returnable. If not provided, the assumption should be that the container is not
                    returnable.</xsd:documentation>
            </xsd:annotation>
            <xsd:extension base="oa:ItemSubLineType">
                <xsd:sequence>
                    <xsd:element ref="RouteStop" minOccurs="0"/>
                </xsd:sequence>                
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

    <xsd:complexType name="ProductionReceiverHeaderBaseType">
        <xsd:complexContent>
            <xsd:extension base="oa:StatusEnabledHeaderType">
                <xsd:sequence>
                    <xsd:element ref="oa:ShipUnitQuantity" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>Contains the quantity of units or things produced. This represents the container(s), not the product.  An example of this is "4 truck loads" or "2 wooden crates".</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="oa:WarehouseLocation" minOccurs="0">
                        <xsd:annotation>
                             <xsd:documentation>Is the storage facility for inventory.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="oa:ActualShipDateTime" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>Is the date that is used to identify the actual date and time the production occurred.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="oa:ScheduledDeliveryDateTime" minOccurs="0"/>
                    <xsd:element ref="oa:ActualDeliveryDateTime" minOccurs="0"/>
                    <xsd:element ref="oa:EstimatedWeightMeasure" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>The estimated weight of a container.  An estimate is provided as a processing alternative when the actual weight of an item is not known or cannot be calculated exactly.</xsd:documentation>
                         </xsd:annotation>
                    </xsd:element>
                    <xsd:group ref="oa:ShippingWeightandVolumeGroup"/>
                    <xsd:element ref="oa:HazardousMaterialCodes" minOccurs="0"/>
                    <xsd:element ref="oa:SpecialHandlingNote" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="oa:DockID" minOccurs="0"/>
                    <xsd:element ref="oa:CarrierParty" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    
    <xsd:complexType name="ProductionReceiverItemBaseType">
        <xsd:complexContent>
            <xsd:extension base="oa:ItemInstanceBaseType">
                <xsd:sequence>
                    <xsd:element ref="oa:SerializedLot" minOccurs="0"/>
                    <xsd:element ref="oa:CountryOfOriginCode" minOccurs="0"/>
                    <xsd:element ref="oa:ImportLicenseRequiredIndicator" minOccurs="0"/>
                    <xsd:element ref="oa:ShippedQuantity" minOccurs="0"/>
                    <xsd:element ref="oa:OwnershipCode" minOccurs="0"/>
                    <xsd:element ref="oa:EstimatedWeightMeasure" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">The estimated weight of an item or container.  An estimate is provided as a processing alternative when the actual weight of an item is not known or cannot be calculated exactly.</xsd:documentation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">The estimated weight of an item or container.  An estimate is provided as a processing alternative when the actual weight of an item is not known or cannot be calculated exactly.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="oa:LoadingWeightMeasure" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">This is the net weight at loading time of the container in which the materials are being shipped.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="oa:ProductionOrderReference" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="oa:SalesOrderReference" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="oa:DocumentReference" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="oa:ItemSubLine" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    
    <xsd:complexType name="ShipmentHeaderBaseType">
        <xsd:complexContent>
            <xsd:extension base="oa:ShipmentHeaderBaseType">
                <xsd:sequence>
                    <xsd:element ref="RouteStop" minOccurs="0"/>
                </xsd:sequence>
                </xsd:extension>
            </xsd:complexContent>
    </xsd:complexType>
    

    
</xsd:schema>
