<?xml version="1.0" encoding="UTF-8" ?>
<!-- 
  
        ** OAGIS® Revision: 9.2  ** 
        ** 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 2011 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. 
  
--> 
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
 xmlns="http://schema.infor.com/InforOAGIS/2"
 targetNamespace="http://schema.infor.com/InforOAGIS/2" elementFormDefault="qualified"
 attributeFormDefault="unqualified" version="trunk">
<xs:element name='SourceSystemJournalEntry' type='SourceSystemJournalEntryType'/>
<xs:complexType name='SourceSystemJournalEntryType'>
<xs:sequence>
<xs:element name='JournalEntryHeader' minOccurs='0' type='JournalEntryHeaderType' >
<xs:annotation>
<xs:documentation>
Holds Header information associcated with the JournalEntry noun.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='JournalEntryLine' minOccurs='0' maxOccurs='unbounded' type='JournalEntryLineType' >
<xs:annotation>
<xs:documentation>
Holds Line information associcated with the JournalEntry noun.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='AccountingChartReferenceType'>
<xs:sequence>
<xs:element name='ID' minOccurs='0' maxOccurs='unbounded' type='ID9Type' >
<xs:annotation>
<xs:documentation>
The ID associated with this Chart of Accounts (the name in tenant default mandatory locale).  Not needed on incoming journals from source systems. FC adds because it needs it anyway.  Published on journals going to BIS to save an extra join - BIS can quer</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Name' minOccurs='0' maxOccurs='unbounded' type='Name2Type' >
<xs:annotation>
<xs:documentation>
The Name associated with this Chart of Accounts.  Not needed on incoming journals from source systems. FC adds because it needs it anyway.  Published on journals going to BIS to save an extra join - BIS can query it directly.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='AccountingDateType'>
<xs:sequence>
<xs:element name='PeriodID' type='PeriodIDType' >
<xs:annotation>
<xs:documentation>
The Financial Period that this journal was expected to be posted to. Initially set from the original journal in the source system. If the journal lines from source system journal contain mixed periods this is empty.  If a period is supplied here it will be used for all lines, regardless of any entries on the lines.

If no period is supplied either here or on the lines, periods will be derived from the accounting date at header level (but set in MultiBook/AccountingDate/PeriodID - this field is never updated by FC.)  If that is not supplied, the journal is put on hold and the header can be edited (that can update this field).

Every journal which leaves FC is for a single period - this is one of the main tasks FC does for MBL - create journals with single period and single date.  In that case, when a journal is split, this field is backfilled by FC to hold the period as supplied on the lines by the source system.

We assume this to be correct when it is supplied, and will .  MBL works off the Financial MultiBook/Accountin Date/PeriodId version.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='PostDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
Source system&#39;s accounting date.  Retained and passed on, but MBL works off the MultiBook/AccountingDate/PostDateTime, which occasionally is not the same as this one. 

Journals can arrive using multiple dates (when this field is blank) but are always passed on with a single date.  FC also makes sure dates and periods are aligned. 

We expect this date to be correct when it is supplied, but reserve the right to change it if it falls outside the accounting period above, when it will be amended by inserting a MultiBook/Accounting Date/PostDateTime which is either the first or the last day of the Accounting period.  

If it is supplied, then this date (or the adjusted version) will be applied to all journal lines by FC, regardless of what they contain.  If it is not supplied, FC will work from line dates and split the journal if necessary by date or adjusted date.  If split by source system date FC then backfills this once journals are split,  from the line date as supplied by source system.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Year' minOccurs='0' type='YearType' >
<xs:annotation>
<xs:documentation>
The Financial Year that this journal was expected to be posted to. From the original journal in the source system. If the journal lines from source system journal contain mixed periods/dates this is empty</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Name' minOccurs='0' type='NameType' >
<xs:annotation>
<xs:documentation>
Identifies the Name of the object in which associated.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='EffectiveTimePeriod' minOccurs='0' type='EffectiveTimePeriodType' >
<xs:annotation>
<xs:documentation>
Indicates the time period in which the associated component is effective.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='AdjustmentSequence' minOccurs='0' type='AdjustmentSequenceType' >
<xs:annotation>
<xs:documentation>
0 or nonexistent when this is a standard period. Only used for adjustment periods.

Rarely supplied by source system, though some will map year-end periods to adjustment periods, eg 13 to 12.1.  

Can exist on CDx or JE journals.  MBL will use the MultiBook/AccountingDate/AdjustmentSequence field.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='InsertedYearIndicator' minOccurs='0' type='InsertedYearIndicatorType' >
<xs:annotation>
<xs:documentation>
This is used to indicate a short year when the financial year is adjusted.

Unlikely to be supplied by most source systems, though may be created by mapping.  Just passed on if it is.  MBL will use the MultiBook/AccountingDate/AdjustmentSequence field.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='AccountingJournalReferenceType'>
<xs:sequence>
<xs:element name='ID' type='ID5Type' >
<xs:annotation>
<xs:documentation>
Journal Type ID of the accounting Journal that is being referenced.  Mandatory.  If missing or invalid, entire journal will be rejected - the most critical error.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Name' minOccurs='0' maxOccurs='unbounded' type='Name1Type' >
<xs:annotation>
<xs:documentation>
Name of the Journal Type.  Not needed on incoming journals, added when MBL publishes to BIS to save joins.  FC will remove if supplied by source system.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='LineNumber' minOccurs='0' type='LineNumberType' >
<xs:annotation>
<xs:documentation>
Is the identifier of the given Line Component within the document</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='AdjustmentSequenceType'>
<xs:simpleContent>
<xs:extension base='IntegerBaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='AlternateDocumentIDType'>
<xs:sequence>
<xs:element name='ID' type='ID1Type' >
<xs:annotation>
<xs:documentation>
An identifier for an object. The ID has a number of possible attributes to further define how it should be used..</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='RevisionID' minOccurs='0' type='RevisionID1Type' >
<xs:annotation>
<xs:documentation>
Identifies the engineering change revision that this entity addresses.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='AlternativeCurrencyAmountType'>
<xs:simpleContent>
<xs:extension base='Decimal2BaseType' >
<xs:attribute name='currencyID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
The code for the currency associated with an amount.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='Amount1Type'>
<xs:simpleContent>
<xs:extension base='DecimalBaseType' >
<xs:attribute name='currencyID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
The code for the currency associated with an amount.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='Amount2Type'>
<xs:simpleContent>
<xs:extension base='DecimalBaseType' >
<xs:attribute name='currencyID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
Valid currency.  If it is present in header then the header value will be used and this value overwritten by FC.  If no value in header, this is a mixed currency journal.  
If Book amount is copied (see above) then this is same code as Book currency.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='AmountNumericType'>
<xs:simpleContent>
<xs:extension base='Decimal2BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='AmountToFunctionalExchangeRateType'>
<xs:sequence>
<xs:element name='RateNumeric' minOccurs='0' type='RateNumericType' >
<xs:annotation>
<xs:documentation>
Rate from Originating to Book currency.  Calculated by FC (first book) and MBL (other books).  Based on 1:1 units.  Rounded to default rounding on Rate Type used for source -&gt; book conversion.  No lookup of Currency fortress rates.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='SourceUnitBaseNumeric' minOccurs='0' type='SourceUnitBaseNumeric1Type' >
<xs:annotation>
<xs:documentation>
Specifies the unit base of the source currency for currencies with small denominations.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='TargetUnitBaseNumeric' minOccurs='0' type='TargetUnitBaseNumeric1Type' >
<xs:annotation>
<xs:documentation>
Specifies the unit base of the target currency for currencies with small denominations.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DivisionIndicator' minOccurs='0' type='DivisionIndicatorType' >
<xs:annotation>
<xs:documentation>
True means it is a division signed rate, and false is a multiply signed rate. It is preferred to use multiply signed rates so set to False where possible.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='CurrencyRateTypeReference' minOccurs='0' type='CurrencyRateTypeReference1Type' >
<xs:annotation>
<xs:documentation>
The reference tot he rate type for a specific currency exchange rate.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='AmountType'>
<xs:simpleContent>
<xs:extension base='DecimalBaseType' >
<xs:attribute name='currencyID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
Only supplied if the Amount is supplied, except on Reval and difference postings, when a currency code may be supplied with a zero amount.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ApprovedAuditType'>
<xs:sequence>
<xs:element name='PersonReference' minOccurs='0' type='PersonReference3Type' >
<xs:annotation>
<xs:documentation>
Reference to a Person Noun</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
The date and time that this journal was approved for posting to the ledger.  If fields supplied by source system, passed through.  If none supplied and we have approvals in FC, then added in FC</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='BaseAmountType'>
<xs:simpleContent>
<xs:extension base='DecimalBaseType' >
<xs:attribute name='currencyID' type='NormalizedString7BaseType' use='optional' >
<xs:annotation><xs:documentation>
The code for the currency associated with an amount.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='BaseJournalEntryHeaderType'>
<xs:sequence>
<xs:element name='LedgerID' minOccurs='0' type='LedgerIDType' >
<xs:annotation>
<xs:documentation>
Not currently used</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DocumentDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
The date and time that the Journal Entry document was generated. The time this BOD is generated.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='AccountingDate' minOccurs='0' type='AccountingDateType' >
<xs:annotation>
<xs:documentation>
Either a date or a period must be supplied either at header level or on each line.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='SourceDocumentReference' minOccurs='0' type='SourceDocumentReferenceType' >
<xs:annotation>
<xs:documentation>
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.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Amount' minOccurs='0' type='AmountType' >
<xs:annotation>
<xs:documentation>
The (originating) amount is the real-world currency in which the transaction actually occurred, eg invoice currency or cheque currency or payroll currency.  In the case of a mixed currency journal this element is not used, and no currency code is supplied

For transactions entered directly into the GL this currency is simply chosen and entered by the accountant.  Source system - totals can be processed by processing all the lines first before sending out the BOD.

Normally positive.   If negative is a negative debit, and debit lines must sum to a negative debit.

This is the total amount - It is the total of all Debits, but it excludes values posted to Statistical Accounts.

This is the total amount - It is the total of all Debits</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='FunctionalAmount' minOccurs='0' type='FunctionalAmountType' >
<xs:annotation>
<xs:documentation>
The book amount is the amount in the single, standard currency of the book.  In the primary book it is supplied by the source ledger system, which normally calculates it from the originating amount (except for LN which triangulates).  In other books it is calculated from the source amount which is one of the originating currency, or the book or source currency of the preceding book in the Conversion Chain.

This is the Book currency total debits.   We will support zero value journals so it can be zero.  It can be zero in two cases:  
1.  All of journal is posted to Statistical accounts so there are no Book Amounts or 
2.  A transaction has been voided LatAm style, so has zero value but still needs to appear in books.  

It is NOT mandatory.                               

Normally positive.   If negative is a negative debit, and debit lines must sum to a negative debit.

This is the total amount - It is the total of all Debits.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='SourceAmount' minOccurs='0' type='SourceAmountType' >
<xs:annotation>
<xs:documentation>
The source amount is the amount from which the book currency is calculated.  In a journal published by MBL, it is a copy of another value.  We replicate it so that BIS can easily produce reports showing how the book amount was derived, without having to reconstruct the Conversion Chain logic.

This is the total Source amount - total of the Debits.

Normally journals from source systems will have nothing in the source amount field.  However, given the way that LN calculates its book amount, the source amount may be populated by what LN calls the “reference” currency value.  This is truly the amount from which the book amount is calculated, so fits the definition of a source amount.

FC copies Originating Amount into Source Amount, for both source system journals (unless it is already populated) and for JE and JC entries.  If there is a single currency, then the total is inserted here: if mixed currency, then this is left blank.

Normally positive.

When MBL publishes journals, iif the source currency is the Originating currency and the journal is a mixed currency journal this element is not used.  Otherwise it is populated by MBL.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='PaymentTerm' minOccurs='0' maxOccurs='unbounded' type='PaymentTermType' >
<xs:annotation>
<xs:documentation>
Identifies the types associated with the PaymentTerm.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' maxOccurs='unbounded' type='Description1Type' >
<xs:annotation>
<xs:documentation>
Used to hold a description for the journal. Eg invoice, Payroll, Cash Payment - the BOD type.  Most source ledger systems not being fed by BODs, so not able to provide this.  FC will provide in future when it starts to transform other BODs into journals.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Note' minOccurs='0' maxOccurs='unbounded' type='NoteType' >
<xs:annotation>
<xs:documentation>
A free form note. The lang attribute identifies the language that the note is in. The author identifies the author of the note. The enrtyDate indicates the date the note was entered or last modified</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DocumentReference' minOccurs='0' maxOccurs='unbounded' type='DocumentReferenceType' >
<xs:annotation>
<xs:documentation>
Any other document (BOD) references that are passed through from the Source System

This is likely to come into use once Fin  Controller receives documents directly, not via a Source Ledger system.  These references allow tracking the history of the transaction through the entire business cycle.  But as long as the previous step is always provided, we could drill from BOD to BOD, so only one is really needed, which is held in SourceDocumentReference above: these others are optional.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='UserArea' minOccurs='0' type='UserAreaType' >
<xs:annotation>
<xs:documentation>
Allows the user of OAGIS to extend the specification in order to provide additional information that is not captured in OAGIS.This is done by defining the additional information in XML Schema and referencing the new schema in the xml instance document throught the use of namespaces. Once this is done the additional information defined there can be carried in the BOD XML instance document.The Open Applications Group will make best efforts to quickly consider all proposed submissions.The USERAREA is always the last element in all components, except where the component has been extended inline.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='SourceJournalID' minOccurs='0' type='SourceJournalIDType' >
<xs:annotation>
<xs:documentation>
The journal ID from the source system  (TBD)

The journal number from the source ledger system.  This is passed through as data.  It may be numeric or may eg have a prefix.  We assume it will be unique within a ledger (ie an Accounting Entity)   But we wi</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='LedgerType' minOccurs='0' type='LedgerTypeType' >
<xs:annotation>
<xs:documentation>
For future use, hard coded to &quot;Actual&quot; on all MBL and Financial Controller Journals.

Future options may include Budget, Forecast etc</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='JournalUsage' minOccurs='0' type='JournalUsageType' >
<xs:annotation>
<xs:documentation>
A &quot;Standard&quot;, &quot;Correction&quot; or &quot;Reversal&quot; 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 FC use only.  All source</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='AccountingJournalReference' minOccurs='0' type='AccountingJournalReferenceType' >
<xs:annotation>
<xs:documentation>
Journal Type</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='LedgerSetupReference' minOccurs='0' type='LedgerSetupReferenceType' >
<xs:annotation>
<xs:documentation>
Identifies the Accounting Book which is the first book of entry for this Journal. The value is normally null on a source system journal, but must be present if this is a Correction or Reversal journal 

If null then the Primary Book is assumed.  If the So</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='JournalStatus' type='JournalStatusType' >
<xs:annotation>
<xs:documentation>
Posting status of Journal</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='SourceSystemJournalCode' minOccurs='0' type='SourceSystemJournalCodeType' >
<xs:annotation>
<xs:documentation>
A flag to identify if this journal was produced from a source ledger system, JE, CDx, other system similar to a ledger, other system not a ledger.

Source system sets this, unless JE when FC sets it.  It helps to decide what validation is applied to journ</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='TransactionReferenceText' minOccurs='0' maxOccurs='2' type='TransactionReferenceTextType' >
<xs:annotation>
<xs:documentation>
Some countries have multiple references for the same invoice.  China has an internal invoice number and an external invoice number for the same physical invoice.  These are human-readable references. Supplied by source system and passed on.  One day may b</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ProtocolNumberText' minOccurs='0' type='ProtocolNumberTextType' >
<xs:annotation>
<xs:documentation>
This may be a sequential number, or a set of sequential numbers with different prefixes.  Used (eg in Italy, Argentina) where source systems have unique sequential numbering per document type such as sales invoice or purchases.  Supplied by source system</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='EnteredAudit' minOccurs='0' type='EnteredAuditType' >
<xs:annotation>
<xs:documentation>
This contains a reference to the person who entered the journal.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ModifiedAudit' minOccurs='0' type='ModifiedAuditType' >
<xs:annotation>
<xs:documentation>
This contains a reference to the person who last made a modification to the journal.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='PostedAudit' minOccurs='0' type='PostedAuditType' >
<xs:annotation>
<xs:documentation>
This contains a reference to the person who posted the journal.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ApprovedAudit' minOccurs='0' type='ApprovedAuditType' >
<xs:annotation>
<xs:documentation>
This contains a reference to the person who approved the journal.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='WarningCode' minOccurs='0' maxOccurs='unbounded' type='WarningCodeType' >
<xs:annotation>
<xs:documentation>
These are used for any warnings which are needed for the report e.g. currency rate not found</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ExchangeRateDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
Identifies the date used to go and look up currency exchange rates which are date based.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='BaseUOMQuantityType'>
<xs:simpleContent>
<xs:extension base='DecimalBaseType' >
<xs:attribute name='unitCode' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
The unit-of-measure (UOM) code associated with a quantity. This is based upon the ISO standard.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='BookInstanceIDType'>
<xs:simpleContent>
<xs:extension base='NormalizedString3BaseType' >
<xs:attribute name='schemeName' type='StringBaseType' use='optional' >
<xs:annotation><xs:documentation>
When no schemeName exists this is the default ID for the enterprise at the level where this object is maintained. The value of the ID must uniquely identify this object throughout the enterprise within the scope of the level where it is maintained (tenant, accounting entity or location). The specific values for this attribute are determined by the individual noun.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The accounting entity that is associated with the maintenance of this instance of the noun. For objects that are maintained at the tenant level this attribute must not be included in the document.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The location that is associated with the maintenance of this instance of the noun. This attribute must not be included on the ID of objects that are maintained at the tenant or accounting entity level.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='variationID' type='IntegerBaseType' use='optional' >
<xs:annotation><xs:documentation>
The number of times this object has been published with these attributes for the accounting entity and location.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='lid' type='String2BaseType' use='optional' >
<xs:annotation><xs:documentation>
The LID of the system where the object can be maintained. This can be used by BIS to help automate the drill back process.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='Code1Type'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='listID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
This attribute contains the Code List ListID for the code that it is associated with.  Journal Warning</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The accounting entity that is associated with the maintenance of this instance of the noun. For objects that are maintained at the tenant level this attribute must not be included in the document.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The location that is associated with the maintenance of this instance of the noun. This attribute must not be included on the ID of objects that are maintained at the tenant or accounting entity level.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='Code2Type'>
<xs:simpleContent>
<xs:extension base='NormalizedString3BaseType' >
<xs:attribute name='listID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
A nominated Code List, as defined in Ledger Setup.  One of the 30 user dimensions.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The accounting entity that is associated with the maintenance of this instance of the noun. For objects that are maintained at the tenant level this attribute must not be included in the document.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The location that is associated with the maintenance of this instance of the noun. This attribute must not be included on the ID of objects that are maintained at the tenant or accounting entity level.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='CodeType'>
<xs:simpleContent>
<xs:extension base='NormalizedString3BaseType' >
<xs:attribute name='listID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
Enum list in Public MDM.  Only needs one value for now.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='CurrencyRateTypeReference1Type'>
<xs:sequence>
<xs:element name='DocumentID' minOccurs='0' type='DocumentID4Type' >
<xs:annotation>
<xs:documentation>
Is the primary document id for the document associated.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='AlternateDocumentID' minOccurs='0' maxOccurs='unbounded' type='AlternateDocumentIDType' >
<xs:annotation>
<xs:documentation>
Is the alternate document id for the associated document.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' maxOccurs='unbounded' type='DescriptionType' >
<xs:annotation>
<xs:documentation>
Free form text that describes the object and repeats as needed to provide support for multilingual descriptions</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='CurrencyRateTypeReferenceType'>
<xs:sequence>
<xs:element name='DocumentID' minOccurs='0' type='DocumentID3Type' >
<xs:annotation>
<xs:documentation>
Rate Type</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='AlternateDocumentID' minOccurs='0' maxOccurs='unbounded' type='AlternateDocumentIDType' >
<xs:annotation>
<xs:documentation>
Is the alternate document id for the associated document.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' maxOccurs='unbounded' type='DescriptionType' >
<xs:annotation>
<xs:documentation>
Free form text that describes the object and repeats as needed to provide support for multilingual descriptions</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='DayBookIDType'>
<xs:simpleContent>
<xs:extension base='NormalizedString2BaseType' >
<xs:attribute name='schemeName' type='StringBaseType' use='optional' >
<xs:annotation><xs:documentation>
When no schemeName exists this is the default ID for the enterprise at the level where this object is maintained. The value of the ID must uniquely identify this object throughout the enterprise within the scope of the level where it is maintained (tenant, accounting entity or location). The specific values for this attribute are determined by the individual noun.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The accounting entity that is associated with the maintenance of this instance of the noun. For objects that are maintained at the tenant level this attribute must not be included in the document.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The location that is associated with the maintenance of this instance of the noun. This attribute must not be included on the ID of objects that are maintained at the tenant or accounting entity level.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='variationID' type='IntegerBaseType' use='optional' >
<xs:annotation><xs:documentation>
The number of times this object has been published with these attributes for the accounting entity and location.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='lid' type='String2BaseType' use='optional' >
<xs:annotation><xs:documentation>
The LID of the system where the object can be maintained. This can be used by BIS to help automate the drill back process.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='DebitCreditFlagType'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='Description1Type'>
<xs:simpleContent>
<xs:extension base='String5BaseType' >
<xs:attribute name='languageID' type='String4BaseType' use='optional' >
<xs:annotation><xs:documentation>
Not used in this instance. Only one instance of Description should be used in this noun.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='DescriptionType'>
<xs:simpleContent>
<xs:extension base='String5BaseType' >
<xs:attribute name='languageID' type='String4BaseType' use='optional' >
<xs:annotation><xs:documentation>
This is required for language codes other than 'en-us' when the element that includes this attribute is used.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='DimensionCodesType'>
<xs:sequence>
<xs:element name='DimensionCode' maxOccurs='unbounded' type='DimensionCodeType' >
<xs:annotation>
<xs:documentation>
The code from the Code, ie the human readable code</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='DimensionCodeType'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='listID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
The name of the code list, in the system language, no locale.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='languageID' type='String4BaseType' use='optional' >
<xs:annotation><xs:documentation>
This is required for language codes other than 'en-us' when the element that includes this attribute is used.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The accounting entity that is associated with the maintenance of this instance of the noun. For objects that are maintained at the tenant level this attribute must not be included in the document.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The location that is associated with the maintenance of this instance of the noun. This attribute must not be included on the ID of objects that are maintained at the tenant or accounting entity level.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='systemDimensionIndicator' type='BooleanBaseType' use='optional' >
<xs:annotation><xs:documentation>
Yes means this is another element somewhere on the Journal header or line which is replicated here in order to serve up all nouns and codes (including enums) as the same type of data in the same list.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='sequence' type='IntegerBaseType' use='optional' >
<xs:annotation><xs:documentation>
The sequence attribute is used for the ordering of elements within a document. It is not intended to be used as an identifier.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='DiscountPercentType'>
<xs:simpleContent>
<xs:extension base='DecimalBaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='DiscountType'>
<xs:sequence>
<xs:element name='ID' minOccurs='0' maxOccurs='unbounded' type='ID3Type' >
<xs:annotation>
<xs:documentation>
An identifier for an object. The ID has a number of possible attributes to further define how it should be used..</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' maxOccurs='unbounded' type='DescriptionType' >
<xs:annotation>
<xs:documentation>
Free form text that describes the object and repeats as needed to provide support for multilingual descriptions</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice>
<xs:sequence>
<xs:element name='Amount' minOccurs='0' type='Amount1Type' >
<xs:annotation>
<xs:documentation>
The amount of discount allowed expressed in the transaction currency.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='BaseAmount' minOccurs='0' type='BaseAmountType' >
<xs:annotation>
<xs:documentation>
Monetary amount used for consolidation at accounting entity level.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ReportAmount' minOccurs='0' type='ReportAmountType' >
<xs:annotation>
<xs:documentation>
Monetary amount used for consolidation at tenant level.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name='DisplayIDType'>
<xs:simpleContent>
<xs:extension base='String3BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='DivisionIndicatorType'>
<xs:simpleContent>
<xs:extension base='BooleanBaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='DocumentID1Type'>
<xs:sequence>
<xs:element name='ID' type='ID4Type' >
<xs:annotation>
<xs:documentation>
The ID of a source document (BOD) that fed the transaction that generated this journal.

BOD number - highly unlikely to be supplied by source ledgers. FC will provide in future when it starts to transform other BODs into journals.  Likely to be supplied</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='RevisionID' minOccurs='0' type='RevisionIDType' >
<xs:annotation>
<xs:documentation>
Identifies the engineering change revision that this entity addresses.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='DocumentID2Type'>
<xs:sequence>
<xs:element name='ID' type='ID6Type' >
<xs:annotation>
<xs:documentation>
The ID of the LedgerSetup.  This is the same as the Accounting Entity Code</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='DocumentID3Type'>
<xs:sequence>
<xs:element name='ID' type='ID8Type' >
<xs:annotation>
<xs:documentation>
ID of Rate Type. Which is name in tenant default mandatory locale.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='RevisionID' minOccurs='0' type='RevisionIDType' >
<xs:annotation>
<xs:documentation>
Identifies the engineering change revision that this entity addresses.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='DocumentID4Type'>
<xs:sequence>
<xs:element name='ID' type='ID2Type' >
<xs:annotation>
<xs:documentation>
An identifier for an object. The ID has a number of possible attributes to further define how it should be used..</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='RevisionID' minOccurs='0' type='RevisionIDType' >
<xs:annotation>
<xs:documentation>
Identifies the engineering change revision that this entity addresses.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='DocumentID5Type'>
<xs:sequence>
<xs:element name='ID' type='ID10Type' >
<xs:annotation>
<xs:documentation>
This is the data as supplied by the source system.  FC and MBL just record and pass it on.
The BOD ID</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='RevisionID' minOccurs='0' type='RevisionIDType' >
<xs:annotation>
<xs:documentation>
Identifies the engineering change revision that this entity addresses.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='DocumentID6Type'>
<xs:sequence>
<xs:element name='ID' type='ID7Type' >
<xs:annotation>
<xs:documentation>
The ID of the source document (BOD) from the source system that fed the transaction that generated this journal.
BOD number - highly unlikely to be supplied by source ledgers. FC will provide in future when it starts to transform other BODs into journals</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='RevisionID' minOccurs='0' type='RevisionIDType' >
<xs:annotation>
<xs:documentation>
Identifies the engineering change revision that this entity addresses.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='DocumentIDType'>
<xs:sequence>
<xs:element name='ID' type='IDType' >
<xs:annotation>
<xs:documentation>
The ID of the source document (BOD) from the source system that generated this journal.

FC copies the details of this BOD into these fields.  MBL then copies this information.  This allows access back to the journal in the source system (TBD)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='RevisionID' minOccurs='0' type='RevisionIDType' >
<xs:annotation>
<xs:documentation>
Identifies the engineering change revision that this entity addresses.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='DocumentReference1Type'>
<xs:sequence>
<xs:element name='DocumentID' minOccurs='0' type='DocumentID6Type' >
<xs:annotation>
<xs:documentation>
heading</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='LineNumber' minOccurs='0' type='LineNumberType' >
<xs:annotation>
<xs:documentation>
Is the identifier of the given Line Component within the document</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name='type' type='String3BaseType' use='optional' >
<xs:annotation><xs:documentation>
Eg invoice, Payroll, Cash Payment - the BOD type.  Most source ledger systems not being fed by BODs, so not able to provide this.  FC will provide in future when it starts to transform other BODs into journals.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name='DocumentReferenceType'>
<xs:sequence>
<xs:element name='DocumentID' minOccurs='0' type='DocumentID1Type' >
<xs:annotation>
<xs:documentation>
Is the primary document id for the document associated.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='LineNumber' minOccurs='0' type='LineNumberType' >
<xs:annotation>
<xs:documentation>
Is the identifier of the given Line Component within the document</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name='type' type='String3BaseType' use='optional' >
<xs:annotation><xs:documentation>
The name of the noun that carries the information being referenced. Valid values are carried in the DocumentType Code list.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name='Duration1Type'>
<xs:simpleContent>
<xs:extension base='Duration1BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='DurationType'>
<xs:simpleContent>
<xs:extension base='DurationBaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='EffectiveTimePeriod1Type'>
<xs:sequence>
<xs:element name='StartDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
The timestamp marking the beginning of a time period during which a related entity or status is effective or applicable.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice>
<xs:sequence>
<xs:element name='Duration' minOccurs='0' type='DurationType' >
<xs:annotation>
<xs:documentation>
Indicates the duration of time as represented by ISO 8601. Where the value space is a six dimensional space where the coordinates designate the Gregorian year, month, day, hour, minute, and second. The number of seconds can include decimal digits to arbitary pecision. This can be used in place of the EndDateTime, but not in conjunction with it.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:sequence>
<xs:element name='EndDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
Is the ending timestamp of the event. This can be used in place of the Duration, but not with it.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name='EffectiveTimePeriodType'>
<xs:sequence>
<xs:element name='StartDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
The timestamp marking the beginning of a time period during which a related entity or status is effective or applicable.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice>
<xs:sequence>
<xs:element name='Duration' minOccurs='0' type='DurationType' >
<xs:annotation>
<xs:documentation>
Indicates the duration of time as represented by ISO 8601. Where the value space is a six dimensional space where the coordinates designate the Gregorian year, month, day, hour, minute, and second. The number of seconds can include decimal digits to arbitary pecision.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:sequence>
<xs:element name='EndDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
Is the ending timestamp of the event. This can be used in place of the Duration, but not with it.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name='EnteredAuditType'>
<xs:sequence>
<xs:element name='PersonReference' minOccurs='0' type='PersonReferenceType' >
<xs:annotation>
<xs:documentation>
Reference to a Person Noun</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
The date and time that this journal was entered.  Entered means prepared - posting is handled separately below.  Eg a temp may enter and an accountant then post This date=time would then relate to a Draft version.  If posted immediately could be same as p</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='FunctionalAmount1Type'>
<xs:simpleContent>
<xs:extension base='DecimalBaseType' >
<xs:attribute name='currencyID' type='NormalizedString3BaseType' use='optional' >
<xs:annotation><xs:documentation>
Valid currency, e.g. GBP. Must be same as currency defined for book, otherwise this is an error.  Must be same in header and on all lines.
This is book currency of primary book for source ledger, or first posting book for JE/JC, it is book currency of bo</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='FunctionalAmountType'>
<xs:simpleContent>
<xs:extension base='DecimalBaseType' >
<xs:attribute name='currencyID' type='NormalizedString3BaseType' use='optional' >
<xs:annotation><xs:documentation>
Only supplied if the Amount is supplied, except on Reval and difference postings, when a currency code may be supplied with a zero amount.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='GLAccountType'>
<xs:sequence>
<xs:element name='GLNominalAccount' minOccurs='0' type='GLNominalAccountType' >
<xs:annotation>
<xs:documentation>
Must be valid for the Chart of Accounts for this book.  It cannot be set to Deleted.  In either case, the journal is held if any one line shows the error.  MBL maps these for all but the initial book.

We will post to Closed accounts with a warning messag</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='GLNominalAccountName' minOccurs='0' type='GLNominalAccountNameType' >
<xs:annotation>
<xs:documentation>
Name of the Natural Account.  Only used by MBL when publishing to BIS.  Not needed on source system or FC published journals.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='AccountingChartReference' minOccurs='0' type='AccountingChartReferenceType' >
<xs:annotation>
<xs:documentation>
Published on outgoing BOD for use in BIS.  FC also needs to know this for validation, so it looks it up, stores it and passes it on to MBL.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='GLFullAccountType'>
<xs:simpleContent>
<xs:extension base='String3BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='GLNominalAccountNameType'>
<xs:simpleContent>
<xs:extension base='StringBaseType' >
<xs:attribute name='languageID' type='StringBaseType' use='optional' >
<xs:annotation><xs:documentation>
All available locales.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='GLNominalAccountType'>
<xs:simpleContent>
<xs:extension base='NormalizedString3BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ID10Type'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The ID of the accounting entity that is associated with this ID</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The ID of the location that is associated with this ID when applicable.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ID1Type'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='schemeName' type='StringBaseType' use='optional' >
<xs:annotation><xs:documentation>
When no schemeName exists this is the default ID for the enterprise at the level where this object is maintained. The value of the ID must uniquely identify this object throughout the enterprise within the scope of the level where it is maintained (tenant, accounting entity or location). The specific values for this attribute are determined by the individual noun.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The accounting entity that is associated with the maintenance of this instance of the noun. For objects that are maintained at the tenant level this attribute must not be included in the document.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The location that is associated with the maintenance of this instance of the noun. This attribute must not be included on the ID of objects that are maintained at the tenant or accounting entity level.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='variationID' type='IntegerBaseType' use='optional' >
<xs:annotation><xs:documentation>
The number of times this object has been published with these attributes for the accounting entity and location.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ID2Type'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='schemeName' type='StringBaseType' use='optional' >
<xs:annotation><xs:documentation>
When no schemeName exists this is the default ID for the enterprise at the level where this object is maintained. The value of the ID must uniquely identify this object throughout the enterprise within the scope of the level where it is maintained (tenant, accounting entity or location). The specific values for this attribute are determined by the individual noun.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The accounting entity that is associated with the maintenance of this instance of the noun. For objects that are maintained at the tenant level this attribute must not be included in the document.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The location that is associated with the maintenance of this instance of the noun. This attribute must not be included on the ID of objects that are maintained at the tenant or accounting entity level.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='variationID' type='IntegerBaseType' use='optional' >
<xs:annotation><xs:documentation>
The number of times this object has been published with these attributes for the accounting entity and location.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='lid' type='String2BaseType' use='optional' >
<xs:annotation><xs:documentation>
The LID of the system where the object can be maintained. This can be used by BIS to help automate the drill back process.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ID3Type'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ID4Type'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
Accounting Entity ID, as defined (for now) in Code List.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
Depends on BOD being identified - may or not have a Location</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='lid' type='String2BaseType' use='optional' >
<xs:annotation><xs:documentation>
The LID of the system where the object can be maintained. This can be used by BIS to help automate the drill back process.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ID5Type'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
Not used - Journal Type is defined at Tenant level.  Leave blank.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
Not used - Journal Type is defined at Tenant level.  Leave blank.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ID6Type'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The ID of the accounting entity that is associated with this ID</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
Not used - Ledgers are not divided into Locations</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ID7Type'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The ID of the accounting entity that is associated with this ID</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The ID of the location that is associated with this ID when applicable.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='lid' type='String2BaseType' use='optional' >
<xs:annotation><xs:documentation>
The LID of the system where the object can be maintained. This can be used by BIS to help automate the drill back process.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ID8Type'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='schemeName' type='StringBaseType' use='optional' >
<xs:annotation><xs:documentation>
When no schemeName exists this is the default ID for the enterprise at the level where this object is maintained. The value of the ID must uniquely identify this object throughout the enterprise within the scope of the level where it is maintained (tenant, accounting entity or location). The specific values for this attribute are determined by the individual noun.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The ID of the accounting entity that is associated with this ID</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The ID of the location that is associated with this ID when applicable.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='variationID' type='IntegerBaseType' use='optional' >
<xs:annotation><xs:documentation>
The number of times this object has been published with these attributes for the accounting entity and location.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='lid' type='String2BaseType' use='optional' >
<xs:annotation><xs:documentation>
The LID of the system where the object can be maintained. This can be used by BIS to help automate the drill back process.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ID9Type'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The ID of the accounting entity that is associated with this ID</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='lid' type='String2BaseType' use='optional' >
<xs:annotation><xs:documentation>
The LID of the system where the object can be maintained. This can be used by BIS to help automate the drill back process.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='IDs1Type'>
<xs:sequence>
<xs:element name='ID' minOccurs='0' maxOccurs='unbounded' type='ID7Type' >
<xs:annotation>
<xs:documentation>
The ID of the user who last modified the contents of the journal on the system</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='IDs2Type'>
<xs:sequence>
<xs:element name='ID' minOccurs='0' maxOccurs='unbounded' type='ID7Type' >
<xs:annotation>
<xs:documentation>
The ID of the person who posted the Journal wherever it was first-posted - could be in Source Ledger System or could be in FC</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='IDs3Type'>
<xs:sequence>
<xs:element name='ID' minOccurs='0' maxOccurs='unbounded' type='ID7Type' >
<xs:annotation>
<xs:documentation>
The ID of the user who approved the journal .  If fields supplied by source system, passed through.  If none supplied and we have approvals in FC, then added in FC</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='IDsType'>
<xs:sequence>
<xs:element name='ID' minOccurs='0' maxOccurs='unbounded' type='ID7Type' >
<xs:annotation>
<xs:documentation>
An identifier for an object. The ID has a number of possible attributes to further define how it should be used..</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='IDType'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The ID of the accounting entity that is associated with this source document

Accounting Entity ID, as defined (for now) in Code List.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The ID of the location that is associated with this source document when applicable.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='InsertedYearIndicatorType'>
<xs:simpleContent>
<xs:extension base='BooleanBaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='JournalEntryHeaderType'>
<xs:sequence>
<xs:element name='JournalID' maxOccurs='unbounded' type='JournalIDType' >
<xs:annotation>
<xs:documentation>
The System issuing the journal will provide a unique ID.  This can consist of the journal number, and if necessary the book and year the journal is intended for.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DisplayID' minOccurs='0' type='DisplayIDType' >
<xs:annotation>
<xs:documentation>
The ID for this object formatted as closely as possible to the way the customer would expect to see the ID. This element is used for display only and has no other purpose.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='BaseJournalEntryHeader' minOccurs='0' type='BaseJournalEntryHeaderType' >
<xs:annotation>
<xs:documentation>
Holds basic information associated with Journal Entry.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='JournalEntryLineType'>
<xs:sequence>
<xs:element name='Amount' minOccurs='0' type='Amount2Type' >
<xs:annotation>
<xs:documentation>
Originating or transactional amount, which is the real world currency of the transaction.  
If none is entered/supplied then the book amount is copied in JE or FC.    
The originating value is held in MBL as part of the core transaction data, alongside r</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='FunctionalAmount' minOccurs='0' type='FunctionalAmount1Type' >
<xs:annotation>
<xs:documentation>
The book amount or base currency amount.
Normally positive when the DebitCredit Flag is &quot;Debit&quot; and negative when the DebitCreditFlag is &quot;Credit&quot;. If opposite sign, then all values on line must be opposite sign or the line is in error.
Can be zero - eithe</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='SourceAmount' minOccurs='0' type='SourceAmount1Type' >
<xs:annotation>
<xs:documentation>
Normally blank for source ledger journals (but see comments re LN on  header fields).   FC will copy Originating Amount to Source Amount, so that first book has same pattern of values as other books. FC copies Originating Amount into Source Amount, for bo</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='SourceToFunctionalExchangeRate' minOccurs='0' type='SourceToFunctionalExchangeRateType' >
<xs:annotation>
<xs:documentation>
Source to Book rate.  This is the main rate that we store.  Normally supplied by source ledger.  If not supplied, derived mathematically from values.
In JE, FC generates for initial book, where normally Source=Originating.  In JE it will look to user l</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='AmountToFunctionalExchangeRate' minOccurs='0' type='AmountToFunctionalExchangeRateType' >
<xs:annotation>
<xs:documentation>
Calculated rate for reporting only</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ReportingCurrencyAmount' minOccurs='0' type='ReportingCurrencyAmountType' >
<xs:annotation>
<xs:documentation>
This element will used to store SunSystems &#39;Value 3&#39; which is used as the reporting currency.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='AlternativeCurrencyAmount' minOccurs='0' type='AlternativeCurrencyAmountType' >
<xs:annotation>
<xs:documentation>
This element will used to store SunSystems &#39;Value 4&#39; which is used as either a secondary reporting currency, or secondary base currency.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='GLAccount' minOccurs='0' type='GLAccountType' >
<xs:annotation>
<xs:documentation>
Natural Account for this Journal line</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DimensionCodes' minOccurs='0' type='DimensionCodesType' >
<xs:annotation>
<xs:documentation>
These include both the user-defined Dimensions, defined on the Chart of Accounts Dimension Sequence, and the System Dimensions, eg Journal Type and Accounting Book.  For User Dimensions, only the Dimensions/Codes defined for the Chart of Accounts of this</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='BaseUOMQuantity' minOccurs='0' type='BaseUOMQuantityType' />
<xs:element name='UserArea' minOccurs='0' type='UserAreaType' >
<xs:annotation>
<xs:documentation>
Allows the user of OAGIS to extend the specification in order to provide additional information that is not captured in OAGIS.This is done by defining the additional information in XML Schema and referencing the new schema in the xml instance document throught the use of namespaces. Once this is done the additional information defined there can be carried in the BOD XML instance document.The Open Applications Group will make best efforts to quickly consider all proposed submissions.The USERAREA is always the last element in all components, except where the component has been extended inline.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='SourceLine' minOccurs='0' type='SourceLineType' >
<xs:annotation>
<xs:documentation>
Usually the source ledger&#39;s journal line number.  If it originated in JE, then the JE line number. Can  be blank when JC or MBL adds a line to a journal from a source ledger.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DebitCreditFlag' minOccurs='0' type='DebitCreditFlagType' >
<xs:annotation>
<xs:documentation>
DEBIT or CREDIT.  If debit we expect positive amounts in all fields (book, source, originating or functional, source, amount, as well as all memo values which are present).  If credit we expect negative values.  Signs can be reversed, but all v</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='SourceAccountingDate' minOccurs='0' type='SourceAccountingDateType' >
<xs:annotation>
<xs:documentation>
Date and period information for this line, coming from the source system.  FC standardises, splits journals, so FC and MBL only produce journals with single period and single date, which are held on the header.  These fields are for audit purposes only, a</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='SourceDocumentReference' minOccurs='0' type='SourceDocumentReference1Type' >
<xs:annotation>
<xs:documentation>
This is the data as supplied by the source system.  FC and MBL just record and pass it on.
For example the invoice number or journal number in the source system this line was created for.  But this must be a BOD, so will not be supplied by source ledger s</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='LineType' minOccurs='0' type='LineTypeType' >
<xs:annotation>
<xs:documentation>
The line type relates to the type of journal  line and uses one of the following values form the ‘Line Types’ enumerated code list in PMDM: RealisedGainsLosses, RevaluedGainsLosses, TranslationDifference, RoundingDifference, Standard (default value).  Note that source systems using a SyncSourceSystemJournalEntry always send the value ‘Standard’.  AGL creates lines containing the remaining values in addition to ‘standard’.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DayBookID' minOccurs='0' type='DayBookIDType' >
<xs:annotation>
<xs:documentation>
Requirement for those systems that require day books.   Supplied by source system and passed on by FC and MBL.
Normally this is an integer but it may have a prefix.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DocumentReference' minOccurs='0' maxOccurs='unbounded' type='DocumentReference1Type' >
<xs:annotation>
<xs:documentation>
Any other document (BOD) references that are passed through from the Source System
This is likely to come into use once Fin  Controller receives documents directly, not via a Source Ledger system.  These references allow tracking the history of the trans</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='TransactionReferenceText' minOccurs='0' maxOccurs='unbounded' type='TransactionReferenceTextType' >
<xs:annotation>
<xs:documentation>
Some countries have multiple references for the same invoice.  China has an internal invoice number and an external invoice number for the same physical invoice.  Human readable references</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ProtocolNumberText' minOccurs='0' type='ProtocolNumberTextType' >
<xs:annotation>
<xs:documentation>
This may be a sequential number, or a set of sequential numbers with different prefixes.  Used (eg in Italy, Argentina) where source systems have unique sequential numbering per document type such as sales invoice or purchases.  Supplied by source system</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' maxOccurs='unbounded' type='DescriptionType' >
<xs:annotation>
<xs:documentation>
The narrative that describes the reason for the entry.  Monolingual.  Optional</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='MemoAmount' minOccurs='0' maxOccurs='unbounded' type='MemoAmountType' >
<xs:annotation>
<xs:documentation>
A numeric amount associated with the code referenced.  Will either be provided by a source system so copied onto outgoing journals, or it can be assigned at journal entry time.

If supplied, both a code and a value must be supplied, otherwise an error wil</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='WarningCode' minOccurs='0' maxOccurs='unbounded' type='WarningCodeType' >
<xs:annotation>
<xs:documentation>
These are used for any warnings which are needed for the report e.g. currency rate not found</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ExchangeRateDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
Identifies the date used to go and look up currency exchange rates which are date based.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='GLFullAccount' minOccurs='0' type='GLFullAccountType' >
<xs:annotation>
<xs:documentation>
This this a segmented account with the Nominal Account and then a delimited list of the dimension values. As an example, SX.e uses division, department, account, sub-account.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name='sequence' type='IntegerBaseType' use='optional' >
<xs:annotation><xs:documentation>
The sequence attribute is used for the ordering of elements within a document. It is not intended to be used as an identifier.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name='JournalIDType'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='schemeName' type='StringBaseType' use='optional' >
<xs:annotation><xs:documentation>
When no schemeName exists this is the default ID for the enterprise at the level where this object is maintained. The value of the ID must uniquely identify this object throughout the enterprise within the scope of the level where it is maintained (tenant, accounting entity or location). The specific values for this attribute are determined by the individual noun.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The ID of the accounting entity that is associated with this ID. Used with the global ID - no schemeNameAttribute. This will come from the accounting entity code list.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The ID of the location that is associated with this ID when applicable. . Used with the global ID- no schemeNameAttribute.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='variationID' type='IntegerBaseType' use='optional' >
<xs:annotation><xs:documentation>
The sequence number that identifies the number of times that this BOD, for this object, has been published. Used with the global ID- no schemeNameAttribute.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='lid' type='String2BaseType' use='optional' >
<xs:annotation><xs:documentation>
The logical ID of the system that is this SOR for this noun instance.. Used with the global ID- no schemeNameAttribute.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='JournalStatusType'>
<xs:sequence>
<xs:element name='Code' type='CodeType' >
<xs:annotation>
<xs:documentation>
&quot;Final&quot;  (we may support &quot;Provisional&quot; later)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' type='DescriptionType' >
<xs:annotation>
<xs:documentation>
Free form text that describes the object and repeats as needed to provide support for multilingual descriptions</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='EffectiveDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
date and time this document becomes effective</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='JournalUsageType'>
<xs:simpleContent>
<xs:extension base='NormalizedString3BaseType' >
<xs:attribute name='listID' type='NormalizedString3BaseType' use='optional' >
<xs:annotation><xs:documentation>
Enum list in Public MDM</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='languageID' type='String4BaseType' use='optional' >
<xs:annotation><xs:documentation>
This is required for language codes other than 'en-us' when the element that includes this attribute is used.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='LedgerIDType'>
<xs:simpleContent>
<xs:extension base='NormalizedString1BaseType' >
<xs:attribute name='schemeName' type='StringBaseType' use='optional' >
<xs:annotation><xs:documentation>
When no schemeName exists this is the default ID for the enterprise at the level where this object is maintained. The value of the ID must uniquely identify this object throughout the enterprise within the scope of the level where it is maintained (tenant, accounting entity or location). The specific values for this attribute are determined by the individual noun.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The accounting entity that is associated with the maintenance of this instance of the noun. For objects that are maintained at the tenant level this attribute must not be included in the document.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The location that is associated with the maintenance of this instance of the noun. This attribute must not be included on the ID of objects that are maintained at the tenant or accounting entity level.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='variationID' type='IntegerBaseType' use='optional' >
<xs:annotation><xs:documentation>
The number of times this object has been published with these attributes for the accounting entity and location.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='lid' type='String2BaseType' use='optional' >
<xs:annotation><xs:documentation>
The LID of the system where the object can be maintained. This can be used by BIS to help automate the drill back process.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='LedgerSetupReferenceType'>
<xs:sequence>
<xs:element name='DocumentID' minOccurs='0' type='DocumentID2Type' >
<xs:annotation>
<xs:documentation>
Is the primary document id for the document associated.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DocumentDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
The date that document was created within the system of record.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' maxOccurs='unbounded' type='DescriptionType' >
<xs:annotation>
<xs:documentation>
Free form text that describes the object and repeats as needed to provide support for multilingual descriptions</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='BookInstanceID' minOccurs='0' type='BookInstanceIDType' >
<xs:annotation>
<xs:documentation>
The ID from the BookInstance section of the LedgerSetup.  Identifies the Book Instance.  Name of the book in the tenant default mandatory locale.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='LedgerTypeType'>
<xs:simpleContent>
<xs:extension base='NormalizedString3BaseType' >
<xs:attribute name='listID' type='NormalizedString3BaseType' use='optional' >
<xs:annotation><xs:documentation>
LedgerType.  Enum list in Public MDM</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='languageID' type='String4BaseType' use='optional' >
<xs:annotation><xs:documentation>
This is required for language codes other than 'en-us' when the element that includes this attribute is used.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='LineNumberType'>
<xs:simpleContent>
<xs:extension base='NormalizedString2BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='LineTypeType'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='listID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
Enum Code List in Public MDM</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='languageID' type='String4BaseType' use='optional' >
<xs:annotation><xs:documentation>
This is required for language codes other than 'en-us' when the element that includes this attribute is used.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='MemoAmountType'>
<xs:sequence>
<xs:element name='AmountNumeric' minOccurs='0' type='AmountNumericType' >
<xs:annotation>
<xs:documentation>
Allows an amount to be associated to a dimension code</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Code' minOccurs='0' type='Code2Type' >
<xs:annotation>
<xs:documentation>
Valid code within nominated code list, eg &quot;KG&quot; or &quot;TONNE&quot; in a Code List of Weight.  In some cases only one code will exist in the Code List where only one unit is used.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='ModifiedAuditType'>
<xs:sequence>
<xs:element name='PersonReference' minOccurs='0' type='PersonReference1Type' >
<xs:annotation>
<xs:documentation>
Reference to a Person Noun</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
The date and time that this journal was last modified?</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='Name1Type'>
<xs:simpleContent>
<xs:extension base='StringBaseType' >
<xs:attribute name='languageID' type='String4BaseType' use='optional' >
<xs:annotation><xs:documentation>
All languages</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='Name2Type'>
<xs:simpleContent>
<xs:extension base='StringBaseType' >
<xs:attribute name='languageID' type='String4BaseType' use='optional' >
<xs:annotation><xs:documentation>
All available languages</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='NameType'>
<xs:simpleContent>
<xs:extension base='StringBaseType' >
<xs:attribute name='languageID' type='String4BaseType' use='optional' >
<xs:annotation><xs:documentation>
This is required for language codes other than 'en-us' when the element that includes this attribute is used.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='NameValueType'>
<xs:simpleContent>
<xs:extension base='StringBaseType' >
<xs:attribute name='name' type='NormalizedString3BaseType' use='optional' >
<xs:annotation><xs:documentation>
This is the identifier for this Property within this document.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='type' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
Identifies the data type of the value of this property.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='unitCode' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
The unit-of-measure (UOM) code associated with a quantity. This is based upon the ISO standard.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='unitCodeListVersionID' type='NormalizedString4BaseType' use='optional' >
<xs:annotation><xs:documentation>
</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='currencyID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
The code for the currency associated with an amount.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='listID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
This attribute contains the Code List ID for the codes that are associated with corresponding entity.  Dimension</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='nounName' type='NormalizedString4BaseType' use='optional' >
<xs:annotation><xs:documentation>
</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='accountingEntity' type='NormalizedString2BaseType' use='optional' >
<xs:annotation><xs:documentation>
The accounting entity that is associated with the maintenance of this instance of the noun. For objects that are maintained at the tenant level this attribute must not be included in the document.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='NoteType'>
<xs:simpleContent>
<xs:extension base='String6BaseType' >
<xs:attribute name='languageID' type='String4BaseType' use='optional' >
<xs:annotation><xs:documentation>
This is required for language codes other than 'en-us' when the element that includes this attribute is used.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='type' type='NormalizedString3BaseType' use='optional' >
<xs:annotation><xs:documentation>
Identifies where the note is used and is associated to an Infor defined code list, 'NoteType,' that indicates the processes that might use the note.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='noteID' type='NormalizedString4BaseType' use='optional' >
<xs:annotation><xs:documentation>
An optional identifier, that when used can uniquely identify each instance of a note within a BOD. It is only unique within the context of the document.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='use' type='NormalizedString5BaseType' use='optional' >
<xs:annotation><xs:documentation>
Indicates if the note should be published externally or if it is for internal use only. It may have the values 'Internal' and 'External'.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='author' type='StringBaseType' use='optional' >
<xs:annotation><xs:documentation>
Person who created the note</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='entryDateTime' type='DateAndTimeBaseType' use='optional' >
<xs:annotation><xs:documentation>
Entry date and time in GMT.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='status' type='String3BaseType' use='optional' >
<xs:annotation><xs:documentation>
Status of a note.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='PaymentBasisCodeType'>
<xs:simpleContent>
<xs:extension base='NormalizedString6BaseType' >
<xs:attribute name='listID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
This attribute contains the Code List ListID for the code that it is associated with.  Payment Basis</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='PaymentScheduleType'>
<xs:sequence>
<xs:element name='Term' minOccurs='0' type='TermType' >
<xs:annotation>
<xs:documentation>
Identifies the Terms i.e. the time and number of payments and the amount or percentage of the payment.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Discount' minOccurs='0' maxOccurs='unbounded' type='DiscountType' >
<xs:annotation>
<xs:documentation>
Identifies the Discount the time and number of payments and the amount or percentage of the discount from the payment.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Penalty' minOccurs='0' maxOccurs='unbounded' type='PenaltyType' >
<xs:annotation>
<xs:documentation>
Identifies the Peanlty what happen when the time and number of payments and the amount or percentage of the penalty to add to the payment.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name='sequence' type='IntegerBaseType' use='optional' >
<xs:annotation><xs:documentation>
The sequence attribute is used for the ordering of elements within a document. It is not intended to be used as an identifier.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name='PaymentTermType'>
<xs:sequence>
<xs:element name='LastModificationDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
The datetime on which the object was last modified.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DocumentDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
The date that document was created within the system of record.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' maxOccurs='unbounded' type='DescriptionType' >
<xs:annotation>
<xs:documentation>
Free form text that describes the object and repeats as needed to provide support for multilingual descriptions</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Note' minOccurs='0' maxOccurs='unbounded' type='NoteType' >
<xs:annotation>
<xs:documentation>
A free form note. The lang attribute identifies the language that the note is in. The author identifies the author of the note. The enrtyDate indicates the date the note was entered or last modified</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Term' minOccurs='0' type='TermType' >
<xs:annotation>
<xs:documentation>
Identifies the Terms i.e. the time and number of payments and the amount or percentage of thepayment.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Discount' minOccurs='0' maxOccurs='unbounded' type='DiscountType' >
<xs:annotation>
<xs:documentation>
Identifies the Discount the time and number of payments and the amount or percentage of the discount from the payment.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Penalty' minOccurs='0' maxOccurs='unbounded' type='PenaltyType' >
<xs:annotation>
<xs:documentation>
Identifies the Peanlty what happen when the time and number of payments and the amount or percentage of the penalty to add to the payment.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='PaymentSchedule' minOccurs='0' maxOccurs='unbounded' type='PaymentScheduleType' >
<xs:annotation>
<xs:documentation>
This indicates the dates at which payments are made by one party to another.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name='type' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
Identifies the types associated with the PaymentTerm.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name='PenaltyType'>
<xs:sequence>
<xs:element name='ID' minOccurs='0' maxOccurs='unbounded' type='ID3Type' >
<xs:annotation>
<xs:documentation>
An identifier for an object. The ID has a number of possible attributes to further define how it should be used..</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' maxOccurs='unbounded' type='DescriptionType' >
<xs:annotation>
<xs:documentation>
Free form text that describes the object and repeats as needed to provide support for multilingual descriptions</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice>
<xs:sequence>
<xs:element name='Amount' minOccurs='0' type='Amount1Type' >
<xs:annotation>
<xs:documentation>
The penalty amount in the transaction currency.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='BaseAmount' minOccurs='0' type='BaseAmountType' >
<xs:annotation>
<xs:documentation>
Monetary amount used for consolidation at accounting entity level.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ReportAmount' minOccurs='0' type='ReportAmountType' >
<xs:annotation>
<xs:documentation>
Monetary amount used for consolidation at tenant level.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name='PeriodIDType'>
<xs:simpleContent>
<xs:extension base='NormalizedString2BaseType' >
<xs:attribute name='schemeName' type='StringBaseType' use='optional' >
<xs:annotation><xs:documentation>
When no schemeName exists this is the default ID for the enterprise at the level where this object is maintained. The value of the ID must uniquely identify this object throughout the enterprise within the scope of the level where it is maintained (tenant, accounting entity or location). The specific values for this attribute are determined by the individual noun.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='PersonReference1Type'>
<xs:sequence>
<xs:element name='IDs' type='IDs1Type' >
<xs:annotation>
<xs:documentation>
A container that holds a list of IDs without RevisionID.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Name' minOccurs='0' type='NameType' >
<xs:annotation>
<xs:documentation>
The name of the user who last modified the journal</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='PersonReference2Type'>
<xs:sequence>
<xs:element name='IDs' type='IDs2Type' >
<xs:annotation>
<xs:documentation>
A container that holds a list of IDs without RevisionID.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Name' minOccurs='0' type='NameType' >
<xs:annotation>
<xs:documentation>
The name of the person who posted the Journal wherever it was first-posted - could be in Source Ledger System or could be in FC</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='PersonReference3Type'>
<xs:sequence>
<xs:element name='IDs' type='IDs3Type' >
<xs:annotation>
<xs:documentation>
A container that holds a list of IDs without RevisionID.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Name' minOccurs='0' type='NameType' >
<xs:annotation>
<xs:documentation>
The name of the user who approved the journal.  If fields supplied by source system, passed through.  If none supplied and we have approvals in FC, then added in FC</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='PersonReferenceType'>
<xs:sequence>
<xs:element name='IDs' type='IDsType' >
<xs:annotation>
<xs:documentation>
A container that holds a list of IDs without RevisionID.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Name' minOccurs='0' type='NameType' >
<xs:annotation>
<xs:documentation>
The name of the user who entered  the journal.  Entered means prepared - posting is handled separately below.  Eg a temp may enter and an accountant then post.  Or may be the same person.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='PostedAuditType'>
<xs:sequence>
<xs:element name='PersonReference' minOccurs='0' type='PersonReference2Type' >
<xs:annotation>
<xs:documentation>
Reference to a Person Noun</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
The date and time that this journal was first posted. This may be a source system, or for non-primary books journals may be FC</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name='Property' type='PropertyType'/>
<xs:complexType name='Property1Type'>
<xs:sequence>
<xs:element name='NameValue' minOccurs='0' type='NameValueType' >
<xs:annotation>
<xs:documentation>
Is the tag and information of the new information to be passed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' maxOccurs='unbounded' type='DescriptionType' >
<xs:annotation>
<xs:documentation>
Free form text that describes the object and repeats as needed to provide support for multilingual descriptions</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Note' minOccurs='0' maxOccurs='unbounded' type='NoteType' >
<xs:annotation>
<xs:documentation>
A free form note. The lang attribute identifies the language that the note is in. The author identifies the author of the note. The enrtyDate indicates the date the note was entered or last modified.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='EffectiveTimePeriod' minOccurs='0' type='EffectiveTimePeriod1Type' >
<xs:annotation>
<xs:documentation>
Indicates the time period in which the associated component is effective.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name='listID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
This attribute contains the Code List ID for the codes that are associated with corresponding entity. Workflow Properties</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name='PropertyType'>
<xs:sequence>
<xs:element name='NameValue' minOccurs='0' type='NameValueType' >
<xs:annotation>
<xs:documentation>
Is the tag and information of the new information to be passed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' maxOccurs='unbounded' type='DescriptionType' >
<xs:annotation>
<xs:documentation>
Free form text that describes the object and repeats as needed to provide support for multilingual descriptions</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Note' minOccurs='0' maxOccurs='unbounded' type='NoteType' >
<xs:annotation>
<xs:documentation>
A free form note. The lang attribute identifies the language that the note is in. The author identifies the author of the note. The enrtyDate indicates the date the note was entered or last modified</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='EffectiveTimePeriod' minOccurs='0' type='EffectiveTimePeriod1Type' >
<xs:annotation>
<xs:documentation>
Indicates the time period in which the associated component is effective.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name='listID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
This attribute contains the Code List ListID for the code that it is associated with.  Journal Warning Parameters</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name='ProtocolNumberTextType'>
<xs:simpleContent>
<xs:extension base='NormalizedString3BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ProxDayOfMonthType'>
<xs:simpleContent>
<xs:extension base='NormalizedString2BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ProxDayOfWeekType'>
<xs:simpleContent>
<xs:extension base='NormalizedString2BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ProxMonthType'>
<xs:simpleContent>
<xs:extension base='IntegerBaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='RateNumericType'>
<xs:simpleContent>
<xs:extension base='DecimalBaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ReportAmountType'>
<xs:simpleContent>
<xs:extension base='DecimalBaseType' >
<xs:attribute name='currencyID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
The code for the currency associated with an amount.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='ReportingCurrencyAmountType'>
<xs:simpleContent>
<xs:extension base='Decimal2BaseType' >
<xs:attribute name='currencyID' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
The code for the currency associated with an amount.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='RevisionID1Type'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='RevisionIDType'>
<xs:simpleContent>
<xs:extension base='NormalizedString2BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='SourceAccountingDateType'>
<xs:sequence>
<xs:element name='PeriodID' type='PeriodIDType' >
<xs:annotation>
<xs:documentation>
This is the data as supplied by the source system.  FC and MBL just record and pass it on.
The Financial Period that this journal was expected to be posted to. From the original journal in the source system.
For JE this is blank.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='PostDateTime' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
This is the data as supplied by the source system.  FC and MBL just record and pass it on.
The Accounting Date that this journal was expected to be posted to. From the original journal in the source system.  
For JE this is blank.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Year' type='YearType' >
<xs:annotation>
<xs:documentation>
This is the data as supplied by the source system.  FC and MBL just record and pass it on.
The Financial Year that this journal was expected to be posted to. From the original journal in the source system. 
For JE this is blank.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Name' minOccurs='0' type='NameType' >
<xs:annotation>
<xs:documentation>
Identifies the Name of the object in which associated.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='EffectiveTimePeriod' minOccurs='0' type='EffectiveTimePeriodType' >
<xs:annotation>
<xs:documentation>
Indicates the time period in which the associated component is effective.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='AdjustmentSequence' minOccurs='0' type='AdjustmentSequenceType' >
<xs:annotation>
<xs:documentation>
This is the data as supplied by the source system.  FC and MBL just record and pass it on.
0 or nonexistent when this is a standard period. Only used for adjustment periods.
For JE this is blank.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='InsertedYearIndicator' minOccurs='0' type='InsertedYearIndicatorType' >
<xs:annotation>
<xs:documentation>
This is the data as supplied by the source system.  FC and MBL just record and pass it on.
This is used to indicate a short year when the financial year is adjusted.
For JE this is blank.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='SourceAmount1Type'>
<xs:simpleContent>
<xs:extension base='DecimalBaseType' >
<xs:attribute name='currencyID' type='NormalizedString3BaseType' use='optional' >
<xs:annotation><xs:documentation>
Valid currency, e.g. GBP. Must be same as in header if it is present in header.  We will not accept mixed currency source amounts coming in from Source Ledger.  We will accept in JE or by import when first book of entry is a secondary book.
FC will copy</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='SourceAmountType'>
<xs:simpleContent>
<xs:extension base='DecimalBaseType' >
<xs:attribute name='currencyID' type='NormalizedString3BaseType' use='optional' >
<xs:annotation><xs:documentation>
Only supplied if the Amount is supplied, except on Reval and difference postings, when a currency code may be supplied with a zero amount.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='SourceDocumentReference1Type'>
<xs:sequence>
<xs:element name='DocumentID' minOccurs='0' type='DocumentID5Type' >
<xs:annotation>
<xs:documentation>
This is the data as supplied by the source system.  FC and MBL just record and pass it on.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='AlternateDocumentID' minOccurs='0' maxOccurs='unbounded' type='AlternateDocumentIDType' >
<xs:annotation>
<xs:documentation>
Is the alternate document id for the associated document.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DocumentDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
This is the data as supplied by the source system.  FC and MBL just record and pass it on.
Date and time when the document was published</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' maxOccurs='unbounded' type='DescriptionType' >
<xs:annotation>
<xs:documentation>
Free form text that describes the object and repeats as needed to provide support for multilingual descriptions</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Note' minOccurs='0' maxOccurs='unbounded' type='NoteType' >
<xs:annotation>
<xs:documentation>
A free form note. The lang attribute identifies the language that the note is in. The author identifies the author of the note. The enrtyDate indicates the date the note was entered or last modified</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='LineNumber' type='LineNumberType' >
<xs:annotation>
<xs:documentation>
Is the identifier of the given Line Component within the document</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ID' minOccurs='0' type='ID2Type' >
<xs:annotation>
<xs:documentation>
An identifier for an object. The ID has a number of possible attributes to further define how it should be used..</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name='type' type='StringBaseType' use='optional' >
<xs:annotation><xs:documentation>
This is the data as supplied by the source system.  FC and MBL just record and pass it on.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name='SourceDocumentReferenceType'>
<xs:sequence>
<xs:element name='DocumentID' minOccurs='0' type='DocumentIDType' >
<xs:annotation>
<xs:documentation>
Is the primary document id for the document associated.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='AlternateDocumentID' minOccurs='0' maxOccurs='unbounded' type='AlternateDocumentIDType' >
<xs:annotation>
<xs:documentation>
Is the alternate document id for the associated document.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DocumentDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
BOD Publication Date/Time</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' maxOccurs='unbounded' type='DescriptionType' >
<xs:annotation>
<xs:documentation>
Free form text that describes the object and repeats as needed to provide support for multilingual descriptions</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Note' minOccurs='0' maxOccurs='unbounded' type='NoteType' >
<xs:annotation>
<xs:documentation>
A free form note. The lang attribute identifies the language that the note is in. The author identifies the author of the note. The enrtyDate indicates the date the note was entered or last modified</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='LineNumber' type='LineNumberType' >
<xs:annotation>
<xs:documentation>
Is the identifier of the given Line Component within the document</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ID' minOccurs='0' type='ID2Type' >
<xs:annotation>
<xs:documentation>
An identifier for an object. The ID has a number of possible attributes to further define how it should be used..</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name='type' type='StringBaseType' use='optional' >
<xs:annotation><xs:documentation>
The name of the noun that carries the information being referenced. Valid values are carried in the DocumentType Code list.  

Eg invoice, Payroll, Cash Payment - the BOD type.  Some source ledger systems are not being fed by BODs, so they may not be able to provide this.  FC will provide in future when it starts to transform other BODs into journals.  Points to an Enum Code List.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name='SourceJournalIDType'>
<xs:simpleContent>
<xs:extension base='NormalizedStringBaseType' >
<xs:attribute name='schemeName' type='StringBaseType' use='optional' >
<xs:annotation><xs:documentation>
When no schemeName exists this is the default ID for the enterprise at the level where this object is maintained. The value of the ID must uniquely identify this object throughout the enterprise within the scope of the level where it is maintained (tenant, accounting entity or location). The specific values for this attribute are determined by the individual noun.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='accountingEntity' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The accounting entity that is associated with the maintenance of this instance of the noun. For objects that are maintained at the tenant level this attribute must not be included in the document.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='location' type='String1BaseType' use='optional' >
<xs:annotation><xs:documentation>
The location that is associated with the maintenance of this instance of the noun. This attribute must not be included on the ID of objects that are maintained at the tenant or accounting entity level.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='variationID' type='IntegerBaseType' use='optional' >
<xs:annotation><xs:documentation>
The number of times this object has been published with these attributes for the accounting entity and location.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='lid' type='String2BaseType' use='optional' >
<xs:annotation><xs:documentation>
The LID of the system where the object can be maintained. This can be used by BIS to help automate the drill back process.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='SourceLineType'>
<xs:simpleContent>
<xs:extension base='NormalizedString2BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='SourceSystemJournalCodeType'>
<xs:simpleContent>
<xs:extension base='NormalizedString3BaseType' >
<xs:attribute name='listID' type='NormalizedString3BaseType' use='optional' >
<xs:annotation><xs:documentation>
Code List "Source System Journal Code" Enum including Source Ledger, Correction, Imported from Ledger, Imported from Other, Entered (at least).  Codes TBC mid-August.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name='languageID' type='String4BaseType' use='optional' >
<xs:annotation><xs:documentation>
This is required for language codes other than 'en-us' when the element that includes this attribute is used.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='SourceToFunctionalExchangeRateType'>
<xs:sequence>
<xs:element name='RateNumeric' minOccurs='0' type='RateNumericType' >
<xs:annotation>
<xs:documentation>
Rate as calculated or as it is defined in Currency Maintenance and looked up. Is the rate to convert from Source to Book currency when each are expressed in the units shown below.  Is the value which is not a power of 10 in the currency rate definition.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='SourceUnitBaseNumeric' minOccurs='0' type='SourceUnitBaseNumericType' >
<xs:annotation>
<xs:documentation>
1, 10&#39;s 100&#39;s, 1000&#39;s etc.  Unit as defined in Currency fortress for rates.  Must be a power of ten.  If value in Currency fortress is not a power of 10, then set this to 1.  One of source and target is always 1, both may be.
When calculated from values</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='TargetUnitBaseNumeric' minOccurs='0' type='TargetUnitBaseNumericType' >
<xs:annotation>
<xs:documentation>
1, 10&#39;s 100&#39;s, 1000&#39;s etc.  Unit as defined in Currency fortress for rates.  Must be a power of ten.  If value in Currency fortress is not a power of 10, then set this to 1. One of source and target is always 1, both may be.
When calculated from values w</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DivisionIndicator' minOccurs='0' type='DivisionIndicatorType' >
<xs:annotation>
<xs:documentation>
True means it is a division signed rate, and false is a multiply signed rate. It is preferred to use multiply signed rates so set to False where possible</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='CurrencyRateTypeReference' minOccurs='0' type='CurrencyRateTypeReferenceType' >
<xs:annotation>
<xs:documentation>
Usually the same Rate Type applies to all lines in a journal.  But occasionally can use different ones, normally only when a breakout code is in use. Rate type may not include rates for all codes, and system may default to Standard Rate.  Exceptionally, e</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='SourceUnitBaseNumeric1Type'>
<xs:simpleContent>
<xs:extension base='Decimal2BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='SourceUnitBaseNumericType'>
<xs:simpleContent>
<xs:extension base='Decimal1BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='SurchargePercentType'>
<xs:simpleContent>
<xs:extension base='DecimalBaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='TargetUnitBaseNumeric1Type'>
<xs:simpleContent>
<xs:extension base='Decimal2BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='TargetUnitBaseNumericType'>
<xs:simpleContent>
<xs:extension base='Decimal1BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='TermType'>
<xs:sequence>
<xs:element name='ID' minOccurs='0' maxOccurs='unbounded' type='ID3Type' >
<xs:annotation>
<xs:documentation>
An identifier for an object. The ID has a number of possible attributes to further define how it should be used..</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Description' minOccurs='0' maxOccurs='unbounded' type='DescriptionType' >
<xs:annotation>
<xs:documentation>
Free form text that describes the object and repeats as needed to provide support for multilingual descriptions</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='EffectiveDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
date and time this document becomes effective</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='DueDateTime' minOccurs='0' type='DateTimeType' >
<xs:annotation>
<xs:documentation>
The date and time that the associated object is to be completed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='PaymentBasisCode' minOccurs='0' type='PaymentBasisCodeType' >
<xs:annotation>
<xs:documentation>
The date and time when the payment terms go into effect. Used in conjunction with NumberOfDays</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Duration' minOccurs='0' type='Duration1Type' >
<xs:annotation>
<xs:documentation>
Indicates the duration of time as represented by ISO 8601. Where the value space is a six dimensional space where the coordinates designate the Gregorian year, month, day, hour, minute, and second. The number of seconds can include decimal digits to arbitary pecision.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice>
<xs:sequence>
<xs:element name='DiscountPercent' minOccurs='0' type='DiscountPercentType' >
<xs:annotation>
<xs:documentation>
Indicates a percentage of discount that is available based on the specified term.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:sequence>
<xs:element name='SurchargePercent' minOccurs='0' type='SurchargePercentType' >
<xs:annotation>
<xs:documentation>
The penalty rate (percentage) charged based on the specified term.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:sequence>
<xs:element name='Amount' minOccurs='0' type='Amount1Type' >
<xs:annotation>
<xs:documentation>
The amount due based on the terms code expressed in the transaction currency.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='BaseAmount' minOccurs='0' type='BaseAmountType' >
<xs:annotation>
<xs:documentation>
Monetary amount used for consolidation at accounting entity level.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ReportAmount' minOccurs='0' type='ReportAmountType' >
<xs:annotation>
<xs:documentation>
Monetary amount used for consolidation at tenant level.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:choice>
<xs:element name='ProxMonth' minOccurs='0' type='ProxMonthType' >
<xs:annotation>
<xs:documentation>
The number of months beyond the Billing Date in which payment is due.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ProxDayOfMonth' minOccurs='0' type='ProxDayOfMonthType' >
<xs:annotation>
<xs:documentation>
The day within the ProxMonth beyond the Billing Date in which payment is due.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='ProxDayOfWeek' minOccurs='0' type='ProxDayOfWeekType' >
<xs:annotation>
<xs:documentation>
The daywithin the ProxWeek  beyond the Billing Date in which payment is due.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name='type' type='NormalizedStringBaseType' use='optional' >
<xs:annotation><xs:documentation>
The type that is associated with this grouping of terms.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name='TransactionReferenceTextType'>
<xs:simpleContent>
<xs:extension base='NormalizedString3BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='WarningCodeType'>
<xs:sequence>
<xs:element name='Code' type='Code1Type' >
<xs:annotation>
<xs:documentation>
Element for the communication of all codes.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name='Property' minOccurs='0' maxOccurs='unbounded' type='PropertyType' >
<xs:annotation>
<xs:documentation>
Represents the Properties or Features of the associated entity</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name='YearType'>
<xs:simpleContent>
<xs:extension base='String1BaseType' >
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="BooleanBaseType" >
<xs:restriction base="xs:boolean" >
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DateAndTimeBaseType" >
<xs:restriction base="DateTimeType" >
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Decimal1BaseType" >
<xs:restriction base="xs:decimal" >
<xs:totalDigits value="22" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Decimal2BaseType" >
<xs:restriction base="xs:decimal" >
<xs:totalDigits value="25" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DecimalBaseType" >
<xs:restriction base="xs:decimal" >
<xs:totalDigits value="25" />
<xs:fractionDigits value="8" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Duration1BaseType" >
<xs:restriction base="xs:duration" >
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DurationBaseType" >
<xs:restriction base="xs:duration" >
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="IntegerBaseType" >
<xs:restriction base="xs:integer" >
<xs:totalDigits value="22" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="NormalizedString1BaseType" >
<xs:restriction base="xs:normalizedString" >
<xs:maxLength value="25" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="NormalizedString2BaseType" >
<xs:restriction base="xs:normalizedString" >
<xs:maxLength value="22" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="NormalizedString3BaseType" >
<xs:restriction base="xs:normalizedString" >
<xs:maxLength value="64" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="NormalizedString4BaseType" >
<xs:restriction base="xs:normalizedString" >
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="NormalizedString5BaseType" >
<xs:restriction base="xs:normalizedString" >
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="NormalizedString6BaseType" >
<xs:restriction base="xs:normalizedString" >
<xs:maxLength value="256" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="NormalizedString7BaseType" >
<xs:restriction base="xs:normalizedString" >
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="NormalizedStringBaseType" >
<xs:restriction base="xs:normalizedString" >
<xs:maxLength value="100" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="String1BaseType" >
<xs:restriction base="xs:string" >
<xs:maxLength value="22" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="String2BaseType" >
<xs:restriction base="xs:string" >
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="String3BaseType" >
<xs:restriction base="xs:string" >
<xs:maxLength value="100" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="String4BaseType" >
<xs:restriction base="xs:string" >
<xs:maxLength value="17" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="String5BaseType" >
<xs:restriction base="xs:string" >
<xs:maxLength value="1024" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="String6BaseType" >
<xs:restriction base="xs:string" >
<xs:maxLength value="10240" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="StringBaseType" >
<xs:restriction base="xs:string" >
<xs:maxLength value="64" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DateTimeType">
<xs:annotation>
<xs:documentation xml:lang="en">
</xs:documentation>
</xs:annotation>
<xs:union memberTypes="xs:date xs:time xs:dateTime"/>
</xs:simpleType>
<xs:complexType name="UserAreaType" block="restriction">
<xs:sequence>
<xs:any namespace="##any" processContents="strict" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
