<?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.
29 Sep 2010    NO      Added GLFullAccount element in the journal line  (JIRA BOD-1423).

        *****     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:element name="AssetFinancialLedger" type="AssetFinancialLedgerType"/>

        <xsd:element name="AssetFinancialLedgerHeader" type="AssetFinancialLedgerHeaderType"/>

        <xsd:element name="AssetFinancialLedgerLine" type="AssetFinancialLedgerLineType"/>



        <xsd:complexType name="AssetFinancialLedgerType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">A journal
                                represents a change in the balances of a business's financial
                                accounts. Many tasks or transactions throughout an enterprise will
                                result in the creation of a journal. Some examples are creating a
                                customer invoice, paying a vendor, transferring inventory, or paying
                                employees. A journal consists of a header with general information,
                                and two or more lines specifying what accounts will be affected. A
                                journal typically includes balanced debit and credit
                        lines.</xsd:documentation>
                </xsd:annotation>
                <xsd:sequence>
                        <xsd:element ref="AssetFinancialLedgerHeader" minOccurs="0"/>
                        <xsd:element ref="AssetFinancialLedgerLine" minOccurs="0"
                                maxOccurs="unbounded"/>
                </xsd:sequence>
        </xsd:complexType>

        <xsd:complexType name="AssetFinancialLedgerHeaderType">
                <xsd:complexContent>
                        <xsd:extension base="StatusEnabledHeaderType">
                                <xsd:sequence>
                                        <xsd:element ref="AccountingDate" minOccurs="0"/>
                                        <xsd:element ref="Asset" minOccurs="0"/>
                                        <xsd:element ref="ActivityType" minOccurs="0"/>
                                        <xsd:element ref="ActivityQuantity" minOccurs="0"/>
                                        <xsd:element ref="Classification" minOccurs="0"/>
                                        <xsd:element ref="OriginCode" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>

        <xsd:complexType name="AssetFinancialLedgerLineType">
                <xsd:complexContent>
                        <xsd:extension base="StatusEnabledLineType">
                                <xsd:sequence>
                                        <xsd:element ref="LineTypeCode" minOccurs="0"/>
                                        <xsd:element ref="DestinationAccountingEntity" minOccurs="0"/>
                                        <xsd:element ref="AccountingDate" minOccurs="0"/>
                                        <xsd:element ref="Amount" minOccurs="0"/>
                                        <xsd:element ref="BaseAmount" minOccurs="0"/>
                                        <xsd:element ref="ReportAmount" minOccurs="0"/>
                                        <xsd:element ref="Classification" minOccurs="0"/>
                                        <xsd:element ref="DebitCreditFlag" minOccurs="0"/>
                                        <xsd:element ref="FunctionalAmount" minOccurs="0"/>
                                        <xsd:element ref="AmountToFunctionalExchangeRate" minOccurs="0"/>
                                        <xsd:element ref="ExchangeRateDateTime" minOccurs="0"/>
                                        <xsd:element ref="CostPercent" minOccurs="0"/>
                                        <xsd:element ref="ProceedsAmount" minOccurs="0"/>
                                        <xsd:element ref="ProceedsBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="ProceedsReportAmount" minOccurs="0"/>
                                        <xsd:element ref="DisposalExpenseAmount" minOccurs="0"/>
                                        <xsd:element ref="DisposalExpenseBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="DisposalExpenseReportAmount" minOccurs="0"/>
                                        <xsd:element ref="RemovalExpenseAmount" minOccurs="0"/>
                                        <xsd:element ref="RemovalExpenseBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="RemovalExpenseReportAmount" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>

        <xsd:element name="OriginCode" type="CodeType"/>
        <xsd:element name="LineTypeCode" type="CodeType"/>
        <xsd:element name="DestinationAccountingEntity" type="IdentifierType"/>
        <xsd:element name="ActivityType" type="CodeType"/>
        <xsd:element name="ActivityQuantity" type="QuantityType"/>
        <xsd:element name="CostPercent" type="PercentType"/>
       
</xsd:schema>
