<?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="http://schema.infor.com/Infor1.0"
    xmlns:qdt="http://www.openapplications.org/oagis/9/qualifieddatatypes/1.1"
    targetNamespace="http://schema.infor.com/Infor1.0" elementFormDefault="qualified"
    attributeFormDefault="unqualified">

    <xsd:import namespace="http://www.openapplications.org/oagis/9"
        schemaLocation="../../../../9.0/Resources/Components/Financial/Components.xsd"/>
    <xsd:include schemaLocation="../Common/Components.xsd"/>

    <xsd:element name="AlternateCurrencyAmount" type="AlternateCurrencyAmountType"/>
    <xsd:element name="BatchReference" type="BatchReferenceType"/>
    <xsd:element name="JournalStatus" type="oa:StatusType"/>
    <xsd:element name="MemoAmount" type="MemoAmountType"/>
    <xsd:element name="TaxReference" type="TaxReferenceType"/>
    <xsd:element name="TransactionDate" type="oa:DateTimeType"/>
    <xsd:element name="Usage" type="UsageType"/>

    <xsd:complexType name="DimensionUsageType">
        <xsd:sequence>
            <xsd:element ref="oa:Sequence">
                <xsd:annotation>
                    <xsd:documentation> Points to the sequence number of the Dimension Set in the
                        AccountingChart. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="Usage" minOccurs="0" maxOccurs="unbounded"> </xsd:element>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:element name="DimensionUsage" type="DimensionUsageType"/>

    <xsd:complexType name="DimensionProfileType">
        <xsd:sequence>
            <xsd:element ref="oa:ID" minOccurs="0"/>
            <xsd:element ref="oa:Name" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="oa:Status" minOccurs="0"/>
            <xsd:element ref="oa:EffectiveTimePeriod" minOccurs="0"/>
            <xsd:element ref="DimensionUsage" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:element name="DimensionProfile" type="DimensionProfileType"/>

    <xsd:complexType name="DimensionProfileSetType">
        <xsd:sequence>
            <xsd:element ref="oa:ID" minOccurs="0"/>
            <xsd:element ref="oa:Name" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="oa:Description" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="oa:Status" minOccurs="0"/>
            <xsd:element ref="oa:EffectiveTimePeriod" minOccurs="0"/>
            <xsd:element ref="DimensionProfile" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:element name="DimensionProfileSet" type="DimensionProfileSetType"/>

    <xsd:complexType name="DimensionSequenceType">
        <xsd:annotation>
            <xsd:documentation> The DimensionSequence is used to define a set of up to 30 Dimensions
                that can be associated to a chart of accounts. Each account can be associated to
                exactly one set. </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element ref="SequencedDimension" maxOccurs="30"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:element name="DimensionSequence" type="DimensionSequenceType"/>

    <xsd:complexType name="DimensionProfileReferenceType">
        <xsd:sequence>
            <xsd:element ref="DimensionProfileSetReference" minOccurs="0"/>
            <xsd:element ref="ProfileReference" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    
    <xsd:element name="DimensionProfileReference" type="DimensionProfileReferenceType"/>
    
    <xsd:complexType name="SequencedDimensionType">
        <xsd:sequence>
            <xsd:element ref="ListID"/>
        </xsd:sequence>
        <xsd:attribute name="sequence" type="oa:PositiveIntegerNumericType"/>
        <xsd:attribute name="derivedIndicator" type="oa:IndicatorType"/>
    </xsd:complexType>
    <xsd:element name="SequencedDimension" type="SequencedDimensionType"/>
    <xsd:element name="DimensionProfileSetReference" type="oa:IdentifierType"/>
    <xsd:element name="ProfileReference" type="oa:IdentifierType"/>
    
    <xsd:element name="AdjustmentSequence" type="oa:PositiveIntegerNumericType"/>
</xsd:schema>
