<?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:in4cl="http://schema.infor.com/Infor1.0/codelists"
    xmlns:in4f="http://schema.infor.com/Infor1.0/fieldlist" xmlns="http://schema.infor.com/Infor1.0"
    targetNamespace="http://schema.infor.com/Infor1.0" elementFormDefault="qualified"
    attributeFormDefault="unqualified">

    <xsd:import namespace="http://schema.infor.com/Infor1.0/codelists"
        schemaLocation="CodeLists.xsd"/>
    <xsd:import namespace="http://www.openapplications.org/oagis/9"
        schemaLocation="../../../../9.0/Resources/Components/Common/Fields.xsd"/>

    <xsd:simpleType name="ContentSortOrderEnumType">
        <xsd:restriction base="in4cl:ContentSortOrderEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="ContentWidthEnumType">
        <xsd:restriction base="in4cl:ContentWidthEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="GenderType">
        <xsd:restriction base="in4cl:GenderEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="ShellModuleTypeEnumType">
        <xsd:restriction base="in4cl:ShellModuleTypeEnumType"/>
    </xsd:simpleType>
    
    <xsd:simpleType name="ShellModuleColorEnumType"> 
        <xsd:restriction base="in4cl:ShellModuleColorEnumType"/>
    </xsd:simpleType>    

    <xsd:simpleType name="UsageType">
        <xsd:restriction base="in4cl:UsageEnumType"/>
    </xsd:simpleType>


    <xsd:simpleType name="YearMethodEnumType">
        <xsd:restriction base="in4cl:YearMethodEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="PeriodTypeEnumType">
        <xsd:restriction base="in4cl:PeriodTypeEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="SimpleStatusEnumType">
        <xsd:restriction base="in4cl:SimpleStatusEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="UILevelEnumType">
        <xsd:restriction base="in4cl:UILevelEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="CostCenterFunctionEnumType">
        <xsd:restriction base="in4cl:CostCenterFunctionEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="FortressStatusType">
        <xsd:restriction base="in4cl:FortressStatusEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="LevelType">
        <xsd:restriction base="in4cl:LevelEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="LotSelectionType">
        <xsd:restriction base="in4cl:LotSelectionEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="DataContentType">
        <xsd:restriction base="in4cl:DataContentEnumType"/>
    </xsd:simpleType>
    <xsd:element name="CurrencyCode" type="oa:CurrencyCodeContentType"/>


    <xsd:simpleType name="DebitCreditType">
        <xsd:restriction base="in4cl:DebitCreditType"/>
    </xsd:simpleType>

    <xsd:simpleType name="CostUnitFunctionEnumType">
        <xsd:restriction base="in4cl:CostUnitFunctionEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="DocumentUsageType">
        <xsd:restriction base="in4cl:DocumentUsageType"/>
    </xsd:simpleType>

    <xsd:simpleType name="LogLevelEnumType">
        <xsd:restriction base="in4cl:LogLevelEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="MessageDirectionEnumType">
        <xsd:restriction base="in4cl:MessageDirectionEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="ObjectClassType">
        <xsd:restriction base="in4cl:ObjectClassEnumType"/>
    </xsd:simpleType>

    <xsd:element name="PingPongCondition" type="oa:StringType"/>

    <xsd:simpleType name="PlanningQuantityCodeType">
        <xsd:restriction base="in4cl:PlanningQuantitiesEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="ScheduleEnumType">
        <xsd:restriction base="in4cl:ScheduleEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="PriorityType">
        <xsd:restriction base="in4cl:PriorityEnumType"/>
    </xsd:simpleType>

    <xsd:simpleType name="TaxableTransactionOriginType">
        <xsd:restriction base="in4cl:TaxableTransactionOriginEnumType"/>
    </xsd:simpleType>
    
    <xsd:element name="Rate" type="oa:AmountType" />
    <xsd:element name="FixedCostAmount" type="oa:AmountType"/>

    <xsd:element name="RunRate" type="oa:AmountType"/>
    <xsd:element name="SetupRate" type="oa:AmountType"/>
    <xsd:element name="FixedCost" type="oa:AmountType"/>
    <xsd:element name="MinimumOrderFreeShippingAmount" type="oa:AmountType"/>
    <xsd:element name="MinimumOrderAmount" type="oa:AmountType"/>
    <xsd:element name="MaximumOrderAmount" type="oa:AmountType"/>

    <xsd:element name="DimensionCode" type="oa:CodeType">
        <xsd:annotation>
            <xsd:documentation>The Code that indicates a Dimention Type rather than an instnace of
                that Dimension Type.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="HoldCode" type="oa:CodeType"/>
    <xsd:element name="NounNameCode" type="oa:CodeType">
        <xsd:annotation>
            <xsd:documentation>The code a document name.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="NounStatusCode" type="oa:CodeType">
        <xsd:annotation>
            <xsd:documentation>The code for the status of the document. The ListID must be the
                listID associated with that noun.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="ReceivingDistributionCenterCode" type="oa:CodeType">
        <xsd:annotation>
            <xsd:documentation>The code for the distribution center that will receive the
            items</xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:element name="AccountOpenedDateTime" type="oa:DateTimeType"/>
    <xsd:element name="Timestamp" type="oa:DateTimeType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/Infor1.0"> The time instant at which
                the log event occurred. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:element name="MaxAgingDuration" type="oa:DurationMeasureType"/>
    <xsd:element name="StatementPeriodDuration" type="oa:DurationMeasureType"/>
    
    <xsd:element name="RouteDay" type="oa:DayOfWeekCodeContentType"/>


    <xsd:element name="BatchID" type="oa:IdentifierType"/>
    <xsd:element name="CASNumber" type="oa:IdentifierType">
        <xsd:annotation>
            <xsd:documentation>
                Used by Hazmat.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="Category" type="oa:IdentifierType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/Infor1.0"> Attribute
                schemeID="java.FQCN" indicates the value is a Java fully qualified class name.
                schemeID="infor.bus.service.instance" identifies an instance of a service in the
                BUS. However, this value is completely ignored by the BUS, the value is stored, but
                not interpreted. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="CostCenterID" type="oa:IdentifierType"/>
    <xsd:element name="CostUnitID" type="oa:IdentifierType"/>
    <xsd:element name="CreatedByID" type="oa:IdentifierType"/>
    <xsd:element name="LinkedReference" type="oa:IdentifierType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/Infor1.0"> Attribute
                schemeID="infor.bus.message.id" indicates the value is a BUS MessageId to link the
                log to. Other schemeID values may be implemented. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="ModifiedByID" type="oa:IdentifierType"/>
    <xsd:element name="NodeID" type="oa:IdentifierType"/>
    <xsd:element name="ProductID" type="oa:IdentifierType"/>
    <xsd:element name="StopID" type="oa:IdentifierType"/>
    <xsd:element name="TaxCode" type="oa:IdentifierType"/>
    <xsd:element name="Version" type="oa:IdentifierType"/>

    <xsd:element name="DirectionalIndicator" type="oa:IndicatorType">
        <xsd:annotation>
            <xsd:documentation>When set to true this indicates that the associated rule or
                calculation is one way only.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="EnvironmentalComplianceIndicator" type="oa:IndicatorType"/>
    <xsd:element name="ExceptionalSupplierIndicator" type="oa:IndicatorType">
        <xsd:annotation>
            <xsd:documentation>When set to true this indicates that the supplier is not available
                for use as a standard supply source.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:element name="InsertedYearIndicator" type="oa:IndicatorType"/>
    <xsd:element name="InternalCustomerIndicator" type="oa:IndicatorType"/>
    <xsd:element name="InternalSupplierIndicator" type="oa:IndicatorType"/>
    
    <!-- The following set of elements are misnamed. They are left this way to avoid breaking existing 
        implementations, but should be changed in the next breaking release. The name should end with 
        Indicator. 
    -->
    <xsd:element name="IsBlocked" type="oa:IndicatorType"/>
    <xsd:element name="IsExpiry" type="oa:IndicatorType"/>
    <xsd:element name="IsVariation" type="oa:IndicatorType"/>
    
    <xsd:element name="MultiCurrencyIndicator" type="oa:IndicatorType"/>
    <xsd:element name="RevaluationIndicator" type="oa:IndicatorType">
        <xsd:annotation>
            <xsd:documentation xml:lang="en"> The RevaluationIndicator is used to indicate if this natural account is to be used for revaluation.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="SellableIndicator" type="oa:IndicatorType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/Infor1.0"> Used to indicate if an
                item is sellable. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="Supplier1099Indicator" type="oa:IndicatorType"/>

    <xsd:element name="CurrencyName" type="oa:NameType"/>
    <xsd:element name="ShortName" type="oa:NameType"/>

    <xsd:element name="Context" type="oa:NormalizedStringType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/Infor1.0"> The context in which the
                log was emitted. In code this may indicate a call stack, or other useful information
                to help narrow the location of the event. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:element name="CurrencyUnitBaseNumeric" type="oa:NumericType">
        <xsd:annotation>
            <xsd:documentation>Specifies the unit base of the currency for currencies with small
                denominations.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="Tolerance" type="oa:NumericType">
        <xsd:annotation>
            <xsd:documentation> The Tolerance is carried as a decimal as in 100.00 for 100 percent.
                It is not represented as a fraction. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:element name="ActiveIngredientPercent" type="oa:PercentType">
        <xsd:annotation>
            <xsd:documentation>
                Used by Hazmat
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:element name="DecimalPlaces" type="oa:PositiveIntegerNumericType">
        <xsd:annotation>
            <xsd:documentation>Identifies the number of significant decimal
            places.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:element name="CriticalSpillQuantity" type="oa:QuantityType"/>    
    <xsd:element name="HoldQuantity" type="oa:QuantityType"/>
    <xsd:element name="MaximumOrderQuantity" type="oa:QuantityType"/>
    <xsd:element name="TotalAvailability" type="oa:QuantityType"/>

    <xsd:element name="BarCode" type="oa:StringType"/>
    <xsd:element name="EnterpriseNode" type="oa:StringType"/>
    <xsd:element name="LicenseValue" type="oa:StringType"/>
    <xsd:element name="ListID" type="oa:StringType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/Infor1.0">The code type that is
                associated to the element. This is the value that is in the instance documents in
                the listID attribute.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:element name="LogText" type="oa:TextType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/Infor1.0"> The text to be logged. Any
                text being communicated about the event that initiated logging. In the event of code
                problems it is also common to include a stack trace. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    

    <xsd:element name="DebitCreditFlag" type="DebitCreditType"/>
    <xsd:element name="LotSelection" type="LotSelectionType"/>
    <xsd:element name="MessageDirection" type="MessageDirectionEnumType"/>
    
    <xsd:simpleType name="RateTypeCodeType">
        <xsd:restriction base="in4cl:RateTypeEnumType"/>
    </xsd:simpleType>
    <xsd:element name="CostRuleUseCode" type="RateTypeCodeType"/>
    <xsd:simpleType name="ResourceTypeCodeType">
        <xsd:annotation>
            <xsd:documentation source="htt://schema.infor.com/Infor1.0">The type code used to determin the type of resource.</xsd:documentation>
        </xsd:annotation>
        <xsd:restriction base="in4cl:ResourceTypeEnumType"/>
    </xsd:simpleType>
    <xsd:element name="ResourceTypeCode" type="ResourceTypeCodeType"/>
</xsd:schema>
