<?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
12 Jan 2011   PO      New Noun
6 Jan 2016    LA      UserArea added to header and line, BOD-3129
23 Mar 2017   LA      BOD-3254, AssetActivityType and SupplierParty added on header; DepreciationMethodCode and BookCode added on 
                      transaction line
31 Mar 2017   LA      BOD-3254 InitializationIndicator added   
27 Apr 2017   LA      DepreciationMethodCode removed from line, it is not needed for now; BOD-3183
        *****     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="AssetTransaction" type="AssetTransactionType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2"
                        > </xsd:documentation>
                </xsd:annotation>
        </xsd:element>

        <xsd:complexType name="AssetTransactionType">
                <xsd:sequence>
                        <xsd:element ref="AssetTransactionHeader" minOccurs="0"/>
                        <xsd:element ref="AssetTransactionLine" minOccurs="0" maxOccurs="unbounded"
                        />
                </xsd:sequence>
        </xsd:complexType>

        <xsd:complexType name="AssetTransactionHeaderType">
                <xsd:complexContent>
                        <xsd:extension base="StatusEnabledHeaderType">
                                <xsd:sequence>
                                        <xsd:element ref="Asset" minOccurs="0"/>
                                        <xsd:element ref="AssetActivityType" minOccurs="0"/>
                                        <xsd:element ref="InitializationIndicator" minOccurs="0"/>
                                        <xsd:element ref="SupplierParty" minOccurs="0">
                                                <xsd:annotation>
                                                        <xsd:documentation>
                                                                Specifies the supplier in case the activity is
                                                                a purchase
                                                        </xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="PostDateTime" minOccurs="0"/>
                                        <xsd:element ref="Classification" minOccurs="0"/>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>
        <xsd:element name="AssetTransactionHeader" type="AssetTransactionHeaderType"/>

        <xsd:complexType name="AssetTransactionLineType">
                <xsd:complexContent>
                        <xsd:extension base="StatusEnabledLineType">
                                <xsd:sequence> 
                                        <xsd:element ref="LineTypeCode" minOccurs="0"/>
                                        <xsd:element ref="Asset" minOccurs="0"/>
                                        <xsd:element ref="AssetBookCode" minOccurs="0"/>
                                        <xsd:element ref="DestinationAccountingEntity" minOccurs="0"/>
                                        <xsd:element ref="PostDateTime" minOccurs="0"/>
                                        <xsd:element ref="Amount" minOccurs="0"/>
                                        <xsd:element ref="BaseAmount" minOccurs="0"/>
                                        <xsd:element ref="ReportAmount" 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="Classification" minOccurs="0"/>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>
        <xsd:element name="AssetTransactionLine" type="AssetTransactionLineType"/>
        <xsd:element name="AssetActivityType" type="CodeType">
                <xsd:annotation>
                        <xsd:documentation>
                                To specify the activity/event that occurred - acquisition, 
                                depreciation, disposal etc.
                        </xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="InitializationIndicator" type="IndicatorType">
                <xsd:annotation>
                        <xsd:documentation>
                                Set to yes when the historical accumulated amounts are being sent for 
                                the first time for existing assets for the activity selected. 
                        </xsd:documentation>
                </xsd:annotation>
        </xsd:element>
</xsd:schema>
