<?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
29 Apr 2011   PO      New noun
        *****     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/Financial/Components.xsd"/>

    <xsd:element name="DefectiveMaterialNotice" type="DefectiveMaterialNoticeType">
        <xsd:annotation>
            <xsd:documentation >Used to report defective material information to supplier.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:complexType name="DefectiveMaterialNoticeType">
        <xsd:complexContent>
            <xsd:extension base="StatusEnabledHeaderType">
                <xsd:sequence>
                    <xsd:element ref="PurchaseOrderReference" minOccurs="0"/>
                    <xsd:element ref="SupplierParty" minOccurs="0"/>
                    <xsd:element ref="ShipFromParty" minOccurs="0"/>
                    <xsd:element ref="Item" minOccurs="0"/>
                    <xsd:element ref="SupplierRMAReference" minOccurs="0"/>
                    <xsd:element ref="RejectTagNumber" minOccurs="0"/>
                    <xsd:element ref="ReceiveDeliveryReference" minOccurs="0"/>
                    <xsd:element ref="SampleQuantity" minOccurs="0"/>
                    <xsd:element ref="NonConformingQuantity" minOccurs="0"/>
                    <xsd:element ref="RejectedByPerson" minOccurs="0"/>
                    <xsd:element ref="RejectedDateTime" minOccurs="0"/>
                    <xsd:element ref="ReasonCode" minOccurs="0"/>
                    <xsd:element ref="SourceOfDefectCode" minOccurs="0"/>
                    <xsd:element ref="ActionInformation" minOccurs="0"/>
                    <xsd:element ref="FirstCorrectedShipmentDate" minOccurs="0"/>
                    <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    
    <xsd:complexType name="ActionInformationType">
        <xsd:sequence>
            <xsd:element ref="RootCause" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="ContainmentRequiredIndicator" minOccurs="0"/>
            <xsd:element ref="ContainmentResponseDueDate" minOccurs="0"/>
            <xsd:element ref="ContainmentAction" minOccurs="0"/>
            <xsd:element ref="ContainmentDate" minOccurs="0"/>
            <xsd:element ref="CorrectiveResponseRequiredIndicator" minOccurs="0"/>
            <xsd:element ref="CorrectiveResponseDueDate" minOccurs="0"/>
            <xsd:element ref="CorrectiveAction" minOccurs="0"/>
            <xsd:element ref="CorrectiveDate" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    
    <xsd:element name="ActionInformation" type="ActionInformationType"/>
    
    <xsd:element name="RejectTagNumber" type="NumericType"/>
    <xsd:element name="SampleQuantity" type="QuantityType"/>
    <xsd:element name="NonConformingQuantity" type="QuantityType"/>
    <xsd:element name="SourceOfDefectCode" type="CodeType"/>
    <xsd:element name="FirstCorrectedShipmentDate" type="DateType"/>
    
    <xsd:element name="RootCause" type="TextType"/>
    <xsd:element name="ContainmentRequiredIndicator" type="IndicatorType"/>
    <xsd:element name="ContainmentResponseDueDate" type="DateType"/>
    <xsd:element name="ContainmentAction" type="TextType"/>
    <xsd:element name="ContainmentDate" type="DateType"/>
    <xsd:element name="CorrectiveResponseRequiredIndicator" type="IndicatorType"/>
    <xsd:element name="CorrectiveResponseDueDate" type="DateType"/>
    <xsd:element name="CorrectiveAction" type="TextType"/>
    <xsd:element name="CorrectiveDate" type="DateType"/>
</xsd:schema>
