<?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:in4f="http://schema.infor.com/Infor1.0/fieldlist"
    xmlns:in4cl="http://schema.infor.com/Infor1.0/codelists"
    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/Nouns/PurchaseOrder.xsd"/>
    <xsd:include schemaLocation="../Components/Operational/OrderManagementComponents.xsd"/>
    
    <xsd:element name="PurchaseOrderSchedule" type="PurchaseOrderScheduleType" substitutionGroup="oa:PurchaseOrderSchedule" />
    <xsd:element name="PurchaseOrderHeader" type="PurchaseOrderHeaderType" substitutionGroup="oa:PurchaseOrderHeader" />
    <xsd:element name="PurchaseOrderLine" type="PurchaseOrderLineType" substitutionGroup="oa:PurchaseOrderLine" />
    <xsd:element name="DocumentUsage" type="DocumentUsageType"/>
    
    <xsd:complexType name="PurchaseOrderHeaderType">
        <xsd:complexContent>
            <xsd:extension base="oa:PurchaseOrderHeaderType">
                <xsd:sequence>
                    <xsd:element ref="PriceOverrideIndicator" minOccurs="0" />
                    <xsd:element ref="ContractApplicableIndicator" minOccurs="0" />
                    <xsd:element ref="oa:RFQReference" minOccurs="0" maxOccurs="unbounded" />
                    <xsd:element ref="ClassificationCode" minOccurs="0" maxOccurs="unbounded" />
                    <xsd:element ref="DocumentUsage" minOccurs="0" />
                    <xsd:element ref="FieldList" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    
    <xsd:complexType name="PurchaseOrderScheduleType">
        <xsd:complexContent>
            <xsd:extension base="oa:PurchaseOrderScheduleType">
                <xsd:sequence>
                    <xsd:element ref="oa:Status" minOccurs="0"/>
                    <xsd:element ref="PriceOverrideIndicator" minOccurs="0" />
                    <xsd:element ref="ContractApplicableIndicator" minOccurs="0" />
                    <xsd:element ref="oa:ShipToParty" minOccurs="0" />
                    <xsd:element ref="oa:BackOrderedQuantity" minOccurs="0"/>
                    <xsd:element ref="oa:ReceivedQuantity" minOccurs="0"/>  
                    <xsd:element ref="oa:UnitPrice" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>This amount is used to override the amount on the line. When omitted the unit price is the same as the unit price for the line.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="oa:IncotermsCode" minOccurs="0" />
                    <xsd:element ref="oa:CarrierParty" minOccurs="0" />
                    <xsd:element ref="oa:TaxJurisdicationCodes" minOccurs="0" />
                    <xsd:element ref="oa:FreightTermCode" minOccurs="0"/>
                    <xsd:element ref="FieldList" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    
    <xsd:complexType name="PurchaseOrderLineType">
        <xsd:complexContent>
            <xsd:extension base="oa:PurchaseOrderLineType">
                <xsd:sequence>
                    <xsd:element ref="PriceOverrideIndicator" minOccurs="0" />
                    <xsd:element ref="ContractApplicableIndicator" minOccurs="0" />
                    <xsd:element ref="oa:ContractReference" minOccurs="0"/>
                    <xsd:element ref="FixedPriceItemIndicator" minOccurs="0"/>
                    <xsd:element ref="ExpensableItemIndicator" minOccurs="0"/>
                    <xsd:element ref="oa:AllocatedQuantity" minOccurs="0"/>
                    <xsd:element ref="UnitQuantityConversionFactor" minOccurs="0"/>
                    <xsd:element ref="oa:SupplierParty" minOccurs="0"/>
                    <xsd:element ref="oa:PurchaseOrderReference" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="oa:RFQReference" minOccurs="0" maxOccurs="unbounded" />
                    <xsd:element ref="oa:Allowance" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="oa:Charge" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="ClassificationCode" minOccurs="0" maxOccurs="unbounded" />
                    <xsd:element ref="FieldList" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

</xsd:schema>
