<?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"
    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/ChartOfAccounts.xsd"/>
    <xsd:include schemaLocation="../Components/Financial/Components.xsd"/>


    <xsd:element name="ChartOfAccounts" type="ChartOfAccountsType"
        substitutionGroup="oa:ChartOfAccounts"/>

    <xsd:element name="EffectiveTimePeriod" type="TimePeriodType"
        substitutionGroup="oa:EffectiveTimePeriod"/>

    <xsd:complexType name="ChartOfAccountsType">
        <xsd:complexContent>
            <xsd:extension base="oa:ChartOfAccountsType">
                <xsd:annotation>
                    <xsd:documentation xml:lang="en">Add elements for structure, memo units and
                        Name-Value Pairs. The structure section is used to add information that
                        defines how accounts are related to one-another. The name-value pairs are
                        used to convey additional information that is specific to an implementation
                        of a chart of accounts. The unique account is identified using the
                        combination of the GL Entity ID and the Nominal Account. The GL Entity ID
                        will tie back to the organizational structure as soon as the organizational
                        structure is implemented. </xsd:documentation>
                </xsd:annotation>
                <xsd:sequence>
                    <xsd:element ref="oa:DocumentID"/>
                    <xsd:element ref="AccountingChartReference" minOccurs="0"/>
                    <xsd:element ref="oa:Status" minOccurs="0"/>
                    <xsd:element ref="oa:Name" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="ShortName" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="DebitCreditFlag" minOccurs="0"/>
                    <xsd:element ref="ChartStructure" minOccurs="0"/>
                    <xsd:element ref="MemoUnit" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="RevaluationIndicator" minOccurs="0"/>
                    <xsd:element ref="DefaultContraAccountReference" minOccurs="0"/>
                    <xsd:element ref="oa:Classification" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="DimensionProfileReference" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

    <xsd:element name="AccountGUID" type="oa:IdentifierType">
        <xsd:annotation>
            <xsd:documentation> The Chart of Accounts Noun can be used to carry a pure nominal
                account, or a fully defined dimensional account. The fully defined account carries a
                GUID that can be used to facilitate the communication of this account and also to
                validate the existance of the combination of dimensions when that is a requirement
                of the financial system. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="AccountType" type="oa:CodeType">
        <xsd:annotation>
            <xsd:documentation> Each Account should be associated to a type of account. This type
                will be maintained as a code from the Code Fortress and can indicate if the account
                is used for assets, depreciation or some other information.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="ChartStructure" type="ChartStructureType">
        <xsd:annotation>
            <xsd:documentation xml:lang="en"> The ChartStructure element contains information
                relating to the reporting structure and the shape of the chart. This should end up
                as a separate function maintained by reporting and not by the CoA. This element
                could well be deprecated in the future. Its use should be
            discouraged.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:element name="MemoUnit" type="MemoUnitType">
        <xsd:annotation>
            <xsd:documentation xml:lang="en"> The MemoUnit element is used to identify the units
                used for non-monetary reporting of information associated with this account.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>

</xsd:schema>
