<?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
10 Apr 2008    JB      Added correct Copyright and update comments to schema.
4 Mar 2016     LA      InterCompanyAccountIndicator added to BaseChartOfAccountsType, BOD-2718
        *****     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:complexType name="ChartOfAccountsType">
                <xsd:complexContent>
                        <xsd:extension base="StatusEnabledStandardHeaderType">
                                <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="BaseChartOfAccounts" minOccurs="0"/>
                                        <xsd:element ref="AccountingChartReference" minOccurs="0"/>
                                        <xsd:element ref="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="Classification" minOccurs="0" maxOccurs="unbounded"/>
                                        <xsd:element ref="DimensionProfileSet" minOccurs="0" maxOccurs="unbounded"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>
        
        <xsd:element name="ChartOfAccounts" type="ChartOfAccountsType"/>
        
        <xsd:element name="AccountGUID" type="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="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:element name="BaseChartOfAccounts" type="BaseChartOfAccountsType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Chart of
                                Accounts represents the accounting structure of a business. Each
                                account represents a financial aspect of a business, such as its
                                Accounts Payable, or the value of its inventory, or its office
                                supply expenses. Typically, each account consists of a character
                                string representing various elements such as major account code and
                                department code.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        
        <xsd:complexType name="BaseChartOfAccountsType">
                <xsd:sequence>
                        <xsd:element ref="GLEntityID" minOccurs="0">
                                <xsd:annotation>
                                        <xsd:documentation
                                                source="http://schema.infor.com/InforOAGIS/2">Is
                                                the primary balancing segment of the GL Account
                                                structure. Typically, this is the owning entity for
                                                the transaction. A G/L entity is the smallest
                                                organizational unit for which individual financial
                                                statements must be drawn up according to relevant
                                                commercial law. P&amp;L statements are required
                                                at this level. </xsd:documentation>
                                </xsd:annotation>
                        </xsd:element>
                        <xsd:element ref="GLNominalAccount" minOccurs="0">
                                <xsd:annotation>
                                        <xsd:documentation
                                                source="http://schema.infor.com/InforOAGIS/2">Is
                                                the primary account classification within a chart of
                                                accounts. For example reveune, Fixed Asset, Land,
                                                Buildings, etc.</xsd:documentation>
                                        <xsd:documentation
                                                source="http://schema.infor.com/InforOAGIS/2">Is
                                                the primary account classification within a chart of
                                                accounts. For example reveune, Fixed Asset, Land,
                                                Buildings, etc.</xsd:documentation>
                                </xsd:annotation>
                        </xsd:element>
                        <xsd:element ref="EffectiveTimePeriod" minOccurs="0">
                                <xsd:annotation>
                                        <xsd:documentation
                                                source="http://schema.infor.com/InforOAGIS/2"
                                                >defines the date and time when a particular
                                                document or item takes effect or becomes valid.</xsd:documentation>
                                        <xsd:documentation
                                                source="http://schema.infor.com/InforOAGIS/2"
                                                >defines the date and time when a particular
                                                document or item takes effect or becomes valid.</xsd:documentation>
                                        <xsd:documentation
                                                source="http://schema.infor.com/InforOAGIS/2"
                                                >defines the date and time when a particular
                                                document or item takes effect or becomes valid.</xsd:documentation>
                                        <xsd:documentation
                                                source="http://schema.infor.com/InforOAGIS/2"
                                                >defines the date and time when a particular
                                                document or item takes effect or becomes valid.</xsd:documentation>
                                </xsd:annotation>
                        </xsd:element>
                        <xsd:element ref="AccountType" minOccurs="0">
                                <xsd:annotation>
                                        <xsd:documentation
                                                source="http://schema.infor.com/InforOAGIS/2"
                                                >AccountType is an account classification that
                                                specifies the use of this account. Suggested
                                                examples of account type are Asset, Equity, Expense,
                                                Liability, Revenue</xsd:documentation>
                                </xsd:annotation>
                        </xsd:element>
                        <xsd:element ref="InterCompanyAccountIndicator" minOccurs="0"/>
                        <xsd:element ref="CurrencyCode" minOccurs="0"/>
                        <xsd:group ref="FreeFormTextGroup" minOccurs="0"/>
                        <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
        </xsd:complexType>

</xsd:schema>
