<?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.
01 Oct 2010    NO      Added ReportingCurrencyAmount and AlternativeCurrencyAmount elements in the row.

        *****     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="../Common/Components.xsd"/>
	<xsd:complexType name="LedgerEntryHeaderType">
		<xsd:sequence>
			<xsd:element ref="LedgerID" minOccurs="0"/>
			<xsd:element ref="GLEntityID" minOccurs="0"/>
			<xsd:element ref="DocumentDateTime" minOccurs="0"/>
			<xsd:element ref="AccountingDate" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Is the date
						that is used to determine the accounting period the transaction is posted
						within. It is also known as the effective or post date.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="SourceDocumentReference" minOccurs="0"/>
			<xsd:group ref="LedgerAmountGroup" minOccurs="0"/>
			<xsd:element ref="EntryCreator" minOccurs="0"/>
			<xsd:element ref="PaymentTerm" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="Party" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:group ref="FreeFormTextGroup" minOccurs="0"/>
			<xsd:group ref="ReferencesGroup" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="LedgerEntryLineType">
		<xsd:sequence>
			<xsd:element ref="GLDestinationEntityID" minOccurs="0"/>
			<xsd:group ref="LedgerEntryContent" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:group name="LedgerEntryContent">
		<xsd:sequence>
			<xsd:group ref="LedgerAmountGroup" minOccurs="0"/>
			<xsd:element ref="GLAccount" minOccurs="0"/>
			<xsd:element ref="DimensionCodes" minOccurs="0"/>
			<xsd:element ref="ProjectReference" minOccurs="0"/>
			<xsd:element ref="Item" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">A product or
						substance that is bought, sold, manufactured, delivered, or is somehow
						handled in similar business processes. It is the identifier of a
						"thing".SYNONYMS Material Part Resource Stock Keeping Unit
					(SKU)</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Quantity" type="QuantityType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Identifies the
						quantity of the item that was specified on the source
					transaction</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="EnterpriseUnit" minOccurs="0"/>
			<xsd:element ref="Employee" minOccurs="0"/>
			<xsd:element ref="EntryCreator" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Is the user
						enterprise-wide identifier. It is also known as the user
					code.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:group>
	<xsd:element name="TransactionAnalysisCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Is a segmenting code
				used to analyze accounting transactions. It is commonly used in project accounting
				applications.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="CreditBaseType">
		<xsd:sequence>
			<xsd:group ref="IDsGroup" minOccurs="0"/>
			<xsd:element ref="GLElement" 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="ApprovalStatus" minOccurs="0"/>
			<xsd:group ref="FreeFormTextGroup" minOccurs="0"/>
			<xsd:element ref="Party" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:group ref="ReferencesGroup" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="TransferPaymentType">
		<xsd:sequence>
			<xsd:group ref="IDsGroup" minOccurs="0"/>
			<xsd:element ref="RequestedExecutionDateTime" minOccurs="0"/>
			<xsd:element ref="FirstAgentPaymentMethodCode" minOccurs="0"/>
			<xsd:element ref="DebtorParty" minOccurs="0"/>
			<xsd:element ref="FirstAgentParty" minOccurs="0"/>
			<xsd:group ref="FreeFormTextGroup" minOccurs="0"/>
			<xsd:element ref="PaymentTransaction" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="TransferAgreementType">
		<xsd:sequence>
			<xsd:choice>
				<xsd:element ref="CreditTransferType" minOccurs="0"/>
				<xsd:element ref="ProprietaryText" minOccurs="0"/>
			</xsd:choice>
			<xsd:element ref="PriorityCode" minOccurs="0"/>
			<xsd:element ref="SettlementPriority" minOccurs="0"/>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="PaymentTransaction" type="PaymentTransactionType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Information to
				communicate the payment transaction.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="PaymentTransactionType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Information to
				communicate the payment transaction.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:group ref="PaymentIDGroup" minOccurs="0"/>
			<xsd:choice>
				<xsd:element ref="PaymentPurposeCode" minOccurs="0"/>
				<xsd:element ref="ProprietaryText" minOccurs="0"/>
			</xsd:choice>
			<xsd:choice>
				<xsd:element ref="InstructedAmount" minOccurs="0"/>
				<xsd:element ref="EquivalentAmount" minOccurs="0"/>
			</xsd:choice>
			<xsd:element ref="ChequeInstruction" minOccurs="0"/>
			<xsd:element ref="OriginatorParty" minOccurs="0"/>
			<xsd:element ref="IntermediaryFinancialParty" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="CreditorParty" minOccurs="0"/>
			<xsd:element ref="FinalAgentFinancialParty" minOccurs="0"/>
			<xsd:element ref="FinalParty" minOccurs="0"/>
			<xsd:element ref="ChargeBearerCode" minOccurs="0"/>
			<xsd:element ref="ExchangeContractReference" minOccurs="0"/>
			<xsd:element ref="RegulatoryReporting" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="FinalAgentInstructions" minOccurs="0"/>
			<xsd:element ref="FirstAgentInstruction" minOccurs="0"/>
			<xsd:element ref="RemittanceInformation" minOccurs="0"/>
			<xsd:group ref="FreeFormTextGroup" minOccurs="0"/>
			<xsd:element ref="Status" minOccurs="0"/>
			<xsd:element ref="RejectionStatus" minOccurs="0"/>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
		<xsd:attribute name="sequence" type="PositiveIntegerNumericType" use="optional"/>
	</xsd:complexType>
	<xsd:group name="PaymentIDGroup">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Group of elements used
				to provide further means of identifying the payment transaction.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="InstructionID" minOccurs="0"/>
			<xsd:element ref="TransactionID" minOccurs="0"/>
			<xsd:element ref="RemitID" minOccurs="0"/>
		</xsd:sequence>
	</xsd:group>
	<xsd:element name="RegulatoryReporting" type="RegulatoryReportingType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Information needed due
				to regulatory and statutory requirements,.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="RegulatoryReportingType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Information needed due
				to regulatory and statutory requirements. Code - Specifies the regulatory reporting
				code. Amount - Amount of money and currency that may need to be reported for
				regulatory and statutory requirements. Note - Or Information - Additional details
				that cater for domestic regulatory requirements. </xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="Code" minOccurs="0"/>
			<xsd:element ref="Amount" minOccurs="0"/>
			<xsd:element ref="Note" minOccurs="0"/>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ChequeInstruction" type="ChequeInstructionType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Information related to
				a cheque instruction. </xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="ChequeInstructionType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2"
			>PmtInf/PmtTx/ChqInstr</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="ChequeNumber" minOccurs="0"/>
			<xsd:element ref="DeliveryMethodCode" minOccurs="0"/>
			<xsd:element ref="ChequeFromParty" minOccurs="0"/>
			<xsd:element ref="DeliverToParty" minOccurs="0"/>
			<xsd:element ref="PriorityCode" minOccurs="0"/>
			<xsd:element ref="ChequeMaturityDate" minOccurs="0"/>
			<xsd:element ref="ChequeFormsCode" minOccurs="0"/>
			<xsd:element ref="ChequeMemoFieldText" minOccurs="0"/>
			<xsd:element ref="RegionalClearingZoneID" minOccurs="0"/>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
		<xsd:attribute name="type" type="ChequeInstructionCodeContentType">
			<xsd:annotation>
				<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Specifies the type
					of checque to be issued.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
	</xsd:complexType>
	<xsd:element name="FirstAgentInstruction" type="FirstAgentInstructionType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Further information
				related to the processing of the payment instruction, which may need to be acted
				upon by the first agent, depending on agreement between customer and the first
				agent. The instruction can relate to a level of service between the customer and the
				first agent, or can be information required by the first agent.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="FirstAgentInstructionType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2"
				>PmtInf/PmtTx/InstrForFrstAgt</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="ProprietaryText" minOccurs="0"/>
			<xsd:element ref="DebitPurposeText" minOccurs="0"/>
			<xsd:element ref="RemitLocationMethodCode" minOccurs="0"/>
			<xsd:element ref="RemitLocationURI" minOccurs="0"/>
			<xsd:element ref="RemitLocationPostalAddress" minOccurs="0"/>
			<xsd:element ref="PaymentTransactionTax" minOccurs="0"/>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="PaymentTransactionTax" type="PaymentTransactionTaxType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Amount of money due to
				government or tax authority, according to various pre-defined parameters such as
				thresholds or income.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="PaymentTransactionTaxType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2"
				>PmtInf/PmtTx/InstrForFrstAgt/Tax</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="CreditorTaxID" minOccurs="0"/>
			<xsd:element ref="CreditorTaxType" minOccurs="0"/>
			<xsd:element ref="DebtorTaxID" minOccurs="0"/>
			<xsd:element ref="TaxReferenceNumber" minOccurs="0"/>
			<xsd:element ref="TotalTaxableBaseAmount" minOccurs="0"/>
			<xsd:element ref="TotalTaxAmount" minOccurs="0"/>
			<xsd:element ref="Tax" minOccurs="0"/>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="RemittanceInformation" type="RemittanceInformationType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Information supplied to
				enable the matching of an entry with the items that the payment is intended to
				settle, eg, commercial invoices in an Accounts Receivable
			system.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="RemittanceInformationType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2"
			>PmtInf/PmtTx/RmtInf</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:group ref="IDsGroup" minOccurs="0"/>
			<xsd:choice>
				<xsd:element ref="UnstructuredRemittanceText" minOccurs="0"/>
				<xsd:element ref="StructuredRemittanceInformation" minOccurs="0"/>
			</xsd:choice>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="FinancialAccount">
		<xsd:complexContent>
			<xsd:extension base="AccountInformationType">
				<xsd:sequence>
					<xsd:element ref="AlternateIDs" minOccurs="0"/>
					<xsd:choice minOccurs="0">
						<xsd:element ref="BBANID" minOccurs="0"/>
						<xsd:element ref="IBANID" minOccurs="0"/>
						<xsd:element ref="UPICID" minOccurs="0"/>
					</xsd:choice>
					<xsd:element ref="AccountName" minOccurs="0"/>
					<xsd:element ref="CurrencyCode" minOccurs="0"/>
					<xsd:element ref="Key" minOccurs="0"/>
					<xsd:element ref="FinancialParty" minOccurs="0"/>
					<xsd:group ref="FreeFormTextGroup" minOccurs="0"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="CreditorDebitorPartyType">
		<xsd:complexContent>
			<xsd:extension base="PayerPartyBaseType">
				<xsd:sequence>
					<xsd:element ref="CountryCode" minOccurs="0"/>
					<xsd:element ref="FinancialAccount" minOccurs="0"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:element name="DebtorParty" type="CreditorDebitorPartyType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Party that owes an
				amount of money to the creditor. In the context of the payment model, the debtor is
				also the debit account owner.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="CreditorParty" type="CreditorDebitorPartyType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Party that receives an
				amount of money from the debtor. In the context of the payment model, the creditor
				is also the credit account owner.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="SettlementPriorityType">
		<xsd:sequence>
			<xsd:choice>
				<xsd:element ref="PaymentScheme" minOccurs="0"/>
				<xsd:element ref="PriorityCode" minOccurs="0"/>
			</xsd:choice>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="SettlementPriority" type="SettlementPriorityType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Indicates the priority
				with which or the system through which the agents in the payment chain will clear
				and settle the payment transaction. IST requires the PriorityCode to contain one of
				two values: HIGH - Indicates a prioity level of high. NORM - Indicates a priority
				level of normal</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="PaymentSchemeType">
		<xsd:sequence>
			<xsd:choice>
				<xsd:element ref="PaymentSchemeCode" minOccurs="0"/>
				<xsd:element ref="ProprietarySchemeText" minOccurs="0"/>
			</xsd:choice>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="PaymentScheme" type="PaymentSchemeType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Pre agreed offering
				between clearing agents or channel through which the payment instruction is to be
				processed. This payment scheme can point to a specific rulebook governing the rules
				of clearing and settlement between two parties.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:group name="LedgerAmountGroup">
		<xsd:sequence>
			<xsd:element ref="Amount" minOccurs="0"/>
			<xsd:element ref="TaxBaseAmount" minOccurs="0"/>
			<xsd:element ref="FunctionalAmount" minOccurs="0"/>
			<xsd:element ref="TaxBaseFunctionalAmount" minOccurs="0"/>
			<xsd:element ref="SourceAmount" minOccurs="0"/>
			<xsd:element ref="SourceToFunctionalExchangeRate" minOccurs="0"/>
			<xsd:element ref="AmountToFunctionalExchangeRate" minOccurs="0"/>
			<xsd:element ref="ReportingCurrencyAmount" minOccurs="0"/>
			<xsd:element ref="AlternativeCurrencyAmount" minOccurs="0"/>
		</xsd:sequence>
	</xsd:group>
	<xsd:element name="SourceDocumentReference" type="DocumentReferenceType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">This is the link that
				ties back to a sub ledger transaction entry ID. It is the identifier of an original/
				source transaction or document. The type indicates the type of document i.e.
				PurchaseOrder, Invoice, Receipt, Credit Memo, Voucher etc. For example, it could be
				the receipt or the summarized inventory activity. This is the singular field that
				refers to an audit record. Together with the Sender information, this is part of the
				referencing system, which will enable drill back audit trail
			functionality.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="FinalAgentInstructionsType">
		<xsd:sequence>
			<xsd:element ref="FinalAgentInstructionCode" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="ProprietaryText" minOccurs="0"/>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="StructuredRemittanceInformationType">
		<xsd:sequence>
			<xsd:element ref="DocumentReference" minOccurs="0"/>
			<xsd:element ref="RemittanceReferredDocumentAmounts" minOccurs="0"/>
			<xsd:element ref="InvoicerParty" minOccurs="0"/>
			<xsd:element ref="InvoiceeParty" minOccurs="0"/>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="StructuredRemittanceInformation" type="StructuredRemittanceInformationType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Information, in
				structured form, which is supplied to enable the matching (reconciliation) of a
				payment with the items that the payment is intended to settle, such as commercial
				invoices in an Accounts Receivable system.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="RemittanceReferredDocumentAmountType">
		<xsd:choice>
			<xsd:element ref="DuePayableAmount" minOccurs="0"/>
			<xsd:element ref="DiscountAppliedAmount" minOccurs="0"/>
			<xsd:element ref="RemittedAmount" minOccurs="0"/>
			<xsd:element ref="CreditNoteAmount" minOccurs="0"/>
			<xsd:element ref="TaxAmount" minOccurs="0"/>
		</xsd:choice>
	</xsd:complexType>
	<xsd:element name="RemittanceReferredDocumentAmounts"
		type="RemittanceReferredDocumentAmountType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Amount of money and
				currency of a document referred to in the remittance section. The amount is
				typically either the original amount due and payable, or the amount actually
				remitted for the referenced document.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="AlternateIDs" type="SequencedIDsType"/>
	<xsd:element name="FinalAgentInstructions" type="FinalAgentInstructionsType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Further information
				related to the processing of the payment instruction, provided by the initiating
				party, and intended for the final agent.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>

	<xsd:complexType name="DimensionUsageType">
		<xsd:sequence>
			<xsd:element ref="ListID"/>
			<xsd:element ref="Usage" minOccurs="0" maxOccurs="unbounded"> </xsd:element>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="DimensionProfileType">
		<xsd:sequence>
			<xsd:element ref="ID" minOccurs="0"/>
			<xsd:element ref="Name" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="Status" minOccurs="0"/>
			<xsd:element ref="EffectiveTimePeriod" minOccurs="0"/>
			<xsd:element ref="DimensionUsage" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="DimensionProfileSetType">
		<xsd:sequence>
			<xsd:element ref="ID" minOccurs="0"/>
			<xsd:element ref="Name" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="Description" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="Status" minOccurs="0"/>
			<xsd:element ref="EffectiveTimePeriod" minOccurs="0"/>
			<xsd:element ref="DimensionProfile" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>

	<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="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:element name="JournalUsage" type="CodeType">
		<xsd:annotation>
			<xsd:documentation> A "Standard", "Correction" or "Reversal" Journal. A Reversal Journal
				is the exact reverse of an existing posted journal. A Correction replaces the
				original posted journal or journal lines on a journal. Reversal and correction for
				MBL use only. All source systems will use standard (FC generates
				correction/reversal) Will be a codelist </xsd:documentation>
		</xsd:annotation>
	</xsd:element>

	<xsd:element name="DimensionUsage" type="DimensionUsageType"/>

	<xsd:element name="DimensionProfile" type="DimensionProfileType"/>

	<xsd:element name="DimensionProfileSet" type="DimensionProfileSetType"/>

	<xsd:element name="DimensionSequence" type="DimensionSequenceType"/>

	<xsd:element name="AlternateCurrencyAmount" type="AlternateCurrencyAmountType"/>
	<xsd:element name="BatchReference" type="BatchReferenceType"/>
	<xsd:element name="JournalStatus" type="StatusType"/>
	<xsd:element name="MemoAmount" type="MemoAmountType"/>
	<xsd:element name="TaxReference" type="TaxReferenceType"/>
	<xsd:element name="TransactionDate" type="DateTimeType"/>
	<xsd:element name="Usage" type="UsageType"/>

	<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:element ref="DerivationType" minOccurs="0"/>
			<xsd:element ref="DerivedHierarchyReference" minOccurs="0"/>
		</xsd:sequence>
		<xsd:attribute name="sequence" type="PositiveIntegerNumericType"/>
		<xsd:attribute name="derivedIndicator" type="IndicatorType"/>
		<xsd:attribute name="memoIndicator" type="IndicatorType"/>
		<xsd:attribute name="defaultCode" type="NormalizedStringType"/>
	</xsd:complexType>
	<xsd:element name="SequencedDimension" type="SequencedDimensionType"/>

	<xsd:element name="DimensionProfileSetReference" type="IdentifierType">
		<xsd:annotation>
			<xsd:documentation>Identifies the dimension profile set that is publsihed as part of the
				AccountingBook.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ProfileReference" type="IdentifierType">
		<xsd:annotation>
			<xsd:documentation> Identifies the individual profile within the
			set.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="AccountingBookDefinitionReference" type="SemanticDocumentReferenceType"/>
	<xsd:element name="DimensionCodes" type="DimensionCodesType"/>
	<xsd:element name="AccountingBookTypeCode" type="CodeType"/>


	<xsd:complexType name="JournalExchangeRateType">
		<xsd:sequence>
			<xsd:element ref="RateNumeric" minOccurs="0"/>
			<xsd:element ref="SourceUnitBaseNumeric" minOccurs="0"/>
			<xsd:element ref="TargetUnitBaseNumeric" minOccurs="0"/>
			<xsd:element ref="DivisionIndicator" minOccurs="0"/>
			<xsd:element ref="CurrencyRateTypeReference" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="LedgerSetupReferenceType">
		<xsd:complexContent>
			<xsd:extension base="DocumentReferenceBaseType">
				<xsd:sequence>
					<xsd:element ref="BookInstanceID" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	
	<xsd:complexType name="RevaluationProfileDetailType">
		<xsd:sequence>
			<xsd:element ref="AccountRevaluationProfile" minOccurs="0"/>
			<xsd:element ref="CurrencyRevaluationProfile" minOccurs="0"/>
			<xsd:element ref="JournalRevaluationProfile" minOccurs="0"/>
			<xsd:element ref="DimensionRevaluationProfile" minOccurs="0"/>
			<xsd:element ref="RevaluationPostingRules" minOccurs="0"/>
			<xsd:element ref="RevaluationSumarizationRules" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="RevaluationProfileDetail" type="RevaluationProfileDetailType"/>
	
	<xsd:complexType name="RevaluationProfileIDType">
		<xsd:sequence>
			<xsd:element ref="ID" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:element name="RevaluationProfileID" type="RevaluationProfileIDType"/>
	
	<xsd:complexType name="RevaluationProfileReferenceType">
		<xsd:sequence>
			<xsd:element ref="RevaluationProfileID" minOccurs="0"/>
			<xsd:element ref="Name" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:complexType name="AccountRevaluationProfileType">
		<xsd:sequence>
			<xsd:element ref="RunTimeRequestIndicator" minOccurs="0"/>
			<xsd:element ref="AccountType" minOccurs="0"/>
			<xsd:choice>
				<xsd:element ref="GLNominalAccount" minOccurs="0"/>
				<xsd:element ref="GLNominalAccountRange" minOccurs="0"/>
				<xsd:element ref="HierarchyNodeReference" minOccurs="0"/>
			</xsd:choice>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="AccountRevaluationProfile" type="AccountRevaluationProfileType"/>
	
	<xsd:complexType name="JournalRevaluationProfileType">
		<xsd:sequence>
			<xsd:element ref="RunTimeRequestIndicator" minOccurs="0"/>
			<xsd:choice>
				<xsd:element ref="AccountingJournalReference" minOccurs="0" maxOccurs="unbounded"/>
				<xsd:element ref="JournalRange" minOccurs="0"/>
				<xsd:element ref="HierarchyNodeReference" minOccurs="0"/>
			</xsd:choice>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="JournalRevaluationProfile" type="JournalRevaluationProfileType"/>
	
	<xsd:complexType name="CurrencyRevaluationProfileType">
		<xsd:sequence>
			<xsd:element ref="RunTimeRequestIndicator" minOccurs="0"/>
			<xsd:choice>
				<xsd:element ref="CurrencyCode" minOccurs="0"/>
				<xsd:element ref="HierarchyNodeReference" minOccurs="0"/>
			</xsd:choice>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="CurrencyRevaluationProfile" type="CurrencyRevaluationProfileType"/>
	
	<xsd:complexType name="DimensionRevaluationProfileType">
		<xsd:sequence>
			<xsd:element ref="RunTimeRequestIndicator" minOccurs="0"/>
			<xsd:choice>
				<xsd:element ref="DimensionCode" minOccurs="0" maxOccurs="unbounded"/>
				<xsd:element ref="DimensionCodeRange" minOccurs="0"/>
				<xsd:element ref="HierarchyNodeReference" minOccurs="0"/>
			</xsd:choice>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="DimensionRevaluationProfile" type="DimensionRevaluationProfileType"/>
	
	<xsd:complexType name="RevaluationPostingRulesType">
		<xsd:sequence>
			<xsd:element ref="RevaluationMethod" minOccurs="0"/>
			<xsd:element ref="CurrencyRateTypeReference" minOccurs="0"/>
			<xsd:element ref="ReverseBalanceSheetPostingIndicator" minOccurs="0"/>
			<xsd:element ref="UseOriginatingAmountIndicator" minOccurs="0"/>
			<xsd:element ref="PostToSourceAccountIndicator" minOccurs="0"/>
			<xsd:element ref="ReserveAccount" minOccurs="0"/>
			<xsd:element ref="OffsetGainAccount" minOccurs="0"/>
			<xsd:element ref="OffsetLossAccount" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="RevaluationPostingRules" type="RevaluationPostingRulesType"/>
	
	<xsd:complexType name="RevaluationSumarizationType">
		<xsd:sequence> 
			<xsd:element ref="DimensionCode" minOccurs="0"/>
			<xsd:element ref="SummarizeOptionalDimensionIndicator" minOccurs="0"/>
			<xsd:element ref="SummaryCodeValue" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="RevaluationSumarizationRules" type="RevaluationSumarizationType"/>
	
	<xsd:complexType name="GLNominalAccountRangeType">
		<xsd:sequence>
			<xsd:element ref="GLNominalAccountFrom"/>
			<xsd:element ref="GLNominalAccountTo"/>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:complexType name="JournalRangeType">
		<xsd:sequence>
			<xsd:element ref="AccountingJournalReferenceFrom" minOccurs="0"/>
			<xsd:element ref="AccountingJournalReferenceTo" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="JournalRange" type="JournalRangeType"/>
	
	<xsd:complexType name="DimensionCodeRangeType">
		<xsd:sequence>
			<xsd:element ref="DimensionCodeFrom"/>
			<xsd:element ref="DimensionCodeTo"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="DimensionCodeRange" type="DimensionCodeRangeType"/>
		
	<xsd:complexType name="OutOfBalanceSuspenseType">
		<xsd:sequence>
			<xsd:element ref="GLAccount" minOccurs="0"/>
			<xsd:element ref="ThresholdAmount" minOccurs="0"/>
			<xsd:element ref="JournalLineDescription" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:element name="OutOfBalanceSuspense" type="OutOfBalanceSuspenseType"/>
	<xsd:element name="AccountingJournalReferenceFrom" type="AccountingJournalReferenceType"/>
	<xsd:element name="AccountingJournalReferenceTo" type="AccountingJournalReferenceType"/>
	
	<xsd:element name="ThresholdAmount" type="AmountType"/>
	
	<xsd:element name="DerivationType" type="CodeType"/>
	
	<xsd:element name="DimensionCodeFrom" type="DimensionCodeType"/>
	<xsd:element name="DimensionCodeTo" type="DimensionCodeType"/>
	
	<xsd:element name="GLNominalAccountRange" type="GLNominalAccountRangeType"/>
	
	<xsd:element name="ReserveAccount" type="GLAccountType"/>
	<xsd:element name="OffsetGainAccount" type="GLAccountType"/>
	<xsd:element name="OffsetLossAccount" type="GLAccountType"/>
	
	<xsd:element name="DerivedHierarchyReference" type="DocumentReferenceType"/>
	
	<xsd:element name="RevaluationProfileReference" type="RevaluationProfileReferenceType"/>
	
	<xsd:element name="LedgerSetupReference" type="LedgerSetupReferenceType"/>

	<xsd:element name="SourceToFunctionalExchangeRate" type="JournalExchangeRateType"/>
	<xsd:element name="AmountToFunctionalExchangeRate" type="JournalExchangeRateType"/>

	<xsd:element name="RevaluationCode" type="CodeType"/>
	<xsd:element name="RevaluationMethod" type="CodeType"/>
	<xsd:element name="SummaryCodeValue" type="CodeType"/>
	
	<xsd:element name="BookInstanceID" type="IdentifierType"/>
	
	<xsd:element name="DivisionIndicator" type="IndicatorType"/>
	<xsd:element name="PostToSourceAccountIndicator" type="IndicatorType"/>
	<xsd:element name="ReverseBalanceSheetPostingIndicator" type="IndicatorType"/>
	<xsd:element name="RunTimeRequestIndicator" type="IndicatorType"/>
	<xsd:element name="SummarizeOptionalDimensionIndicator" type="IndicatorType"/>
	<xsd:element name="UseOriginatingAmountIndicator" type="IndicatorType"/>
	
	<xsd:element name="DefaultCodeString" type="NormalizedStringType"/>
	<xsd:element name="GLNominalAccountFrom" type="NormalizedStringType"/>
	<xsd:element name="GLNominalAccountTo" type="NormalizedStringType"/>
	<xsd:element name="MassUOMCode" type="UOMCodeType"/>
	<xsd:element name="VolumeUOMCode" type="UOMCodeType"/>
	<xsd:element name="AreaUOMCode" type="UOMCodeType"/>
	<xsd:element name="LengthUOMCode" type="UOMCodeType"/>
	
	<xsd:element name="ReportingCurrencyAmount" type="AmountType">
		<xsd:annotation>
			<xsd:documentation> This element will used to store SunSystems 'Value 3' which is used as the 
				reporting currency. </xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="AlternativeCurrencyAmount" type="AmountType">
		<xsd:annotation>
			<xsd:documentation> This element will used to store SunSystems 'Value 4' which is used as 
				either a secondary reporting currency, or secondary base currency </xsd:documentation>
		</xsd:annotation>
	</xsd:element>    	
	
</xsd:schema>
