<?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.
27 Aug 2014    LA      BOD-2714 - Added SerializedLot
15 Oct 2014    srapolu BOD-2222  - Added LineNumber 
14 Aug 2015    LA      Added ReceivedAuxiliaryQuantity to line level, BOD-3020
 
        *****     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="../Nouns/Shipment.xsd"/>
   
    <xsd:element name="ServiceConsumption" type="ServiceConsumptionType">
        <xsd:annotation>
            <xsd:documentation>Represents a transaction for the receiving of services from the location where the receipt actually occurs. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:element name="ServiceConsumptionHeader" type="ServiceConsumptionHeaderType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Provides general information about the ServiceConsumption receipt document that is used to receive a specific quantity of material goods from a supplier.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:element name="ServiceConsumptionItem" type="ServiceConsumptionItemType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Provides general information about the item inventory being delivered, including the requested and actual quantities.  This information usually directly references a line item or Delivery schedule line on a sales order, purchase order or other inventory transfer document.  </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:complexType name="ServiceConsumptionType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">ServiceConsumption typically report on the ServiceConsumptionItems.</xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element ref="ServiceConsumptionHeader" minOccurs="0"/>
            <xsd:element ref="ServiceConsumptionItem" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    
    <xsd:complexType name="ServiceConsumptionHeaderType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Provides general information about the ServiceConsumption document that is used to receive a specific quantity of material goods
                The EffectiveDateTime is the date/time the received material is posted to other business systems as being available for use.</xsd:documentation>
        </xsd:annotation>
        <xsd:complexContent>
            <xsd:extension base="ShipmentHeaderBaseType">
                <xsd:sequence>
                    <xsd:element ref="ReceivingServiceChargeAmount" minOccurs="0"/>
                    <xsd:element ref="ReceivingServiceChargeBaseAmount" minOccurs="0"/>
                    <xsd:element ref="ReceivingServiceChargeReportAmount" minOccurs="0"/>
                    <xsd:element ref="EffectiveDateTime" minOccurs="0"/>
                    <xsd:element ref="ReceivedDateTime" minOccurs="0"/>
                    <xsd:element ref="DeliverToParty" minOccurs="0"/>
                    <xsd:element ref="ReceivingLocation" minOccurs="0"/>
                    <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    
    <xsd:complexType name="ServiceConsumptionItemType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">ReceiptLine represents the goods line item detail of the receipt document. THis can be used by itself for traditional receiving against Purchase Orders or other line-item oriented buisness documents, or in conjunction with the ReceiptUnit element to summarize ship unit item detail at line level</xsd:documentation>
        </xsd:annotation>
        <xsd:complexContent>
            <xsd:extension base="ShipItemBaseType">
                <xsd:sequence>
                    <xsd:element ref="SerializedLot" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="LineNumber" minOccurs="0"/>
                    <xsd:element ref="Status" minOccurs="0"/>
                    <xsd:element ref="ReceivingServiceChargeAmount" minOccurs="0"/>
                    <xsd:element ref="ReceivingServiceChargeBaseAmount" minOccurs="0"/>
                    <xsd:element ref="ReceivingServiceChargeReportAmount" minOccurs="0"/>
                    <xsd:element ref="PackingSlipQuantity" minOccurs="0"/>
                    <xsd:element ref="PackingSlipBaseUOMQuantity" minOccurs="0"/>
                    <xsd:element ref="ReceivedQuantity" minOccurs="0"/>
                    <xsd:element ref="ReceivedBaseUOMQuantity" minOccurs="0"/>
                    <xsd:element ref="ReceivedAuxiliaryQuantity" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="ReturnedQuantity" minOccurs="0"/>
                    <xsd:element ref="ReturnedBaseUOMQuantity" minOccurs="0"/>
                    <xsd:element ref="ReceiptRoutingCode" minOccurs="0"/>
                    <xsd:group ref="CatchWeightGroup" minOccurs="0"/>
                    <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
       
</xsd:schema>