<?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/LogisticsComponents.xsd"/>
    
    <xsd:complexType name="ProductionReceiverType">
        <xsd:sequence>
            <xsd:element ref="ProductionReceiverHeader" minOccurs="0"/>
            <xsd:element ref="ProductionReceiverItem" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="ProductionReceiverUnit" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    
    <xsd:element name="ProductionReceiver" type="ProductionReceiverType">
        <xsd:annotation>
            <xsd:documentation>
                Represents an the results of a production run that should be received into inventory.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:element name="ProductionReceiverHeader" type="ProductionReceiverHeaderBaseType"/>
    <xsd:element name="ProductionReceiverItem" type="ProductionReceiverItemBaseType"/>

    <xsd:complexType name="ProductionReceiverHeaderBaseType">
        <xsd:complexContent>
            <xsd:extension base="StatusEnabledHeaderType">
                <xsd:sequence>
                    <xsd:element ref="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="WarehouseLocation" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>Is the storage facility for inventory.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="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="ScheduledDeliveryDateTime" minOccurs="0"/>
                    <xsd:element ref="ActualDeliveryDateTime" minOccurs="0"/>
                    <xsd:element ref="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="ShippingWeightandVolumeGroup"/>
                    <xsd:element ref="HazardousMaterialCodes" minOccurs="0"/>
                    <xsd:element ref="SpecialHandlingNote" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="DockID" minOccurs="0"/>
                    <xsd:element ref="CarrierParty" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    
    <xsd:complexType name="ProductionReceiverItemBaseType">
        <xsd:complexContent>
            <xsd:extension base="ItemInstanceBaseType">
                <xsd:sequence>
                    <xsd:element ref="SerializedLot" minOccurs="0"/>
                    <xsd:element ref="CountryOfOriginCode" minOccurs="0"/>
                    <xsd:element ref="ImportLicenseRequiredIndicator" minOccurs="0"/>
                    <xsd:element ref="ShippedQuantity" minOccurs="0"/>
                    <xsd:element ref="OwnershipCode" minOccurs="0"/>
                    <xsd:element ref="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="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="ProductionOrderReference" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="SalesOrderReference" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="DocumentReference" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="ItemSubLine" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    
    
    
</xsd:schema>
