Table

GlobalJournalDocument

Global journal document

Document within a global journal, keyed by journal, company, document type and document number. It holds the voucher, accounting date, currency, exchange rates, posting and approval details. It links to GlobalJournal, AccountingEvent and the document type settings.

Table name
GlobalJournalDocument
Module
Cross-module and platform
Table group
WorksheetHeader
Table type
Regular
Data per company
No
Configuration key
LedgerBasic
Primary index
GlobalJournalDocumentIdx
Replacement key
None
Key fields
GlobalJournal, Company, DocumentType, DocumentNumber
Model
GlobalJournalCore

Fields (37)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
GlobalJournalPoints to the parent journal in GlobalJournal.Int64
GlobalJournalRecId
YesGlobalJournal.RecIdNone
CompanyCompany (legal entity) of the document. Relates to DataArea.String
SelectableDataArea
YesNone
DocumentTypeType of document: ledger adjustment, free text invoice or order invoice.Enum
DocumentType (enum)
YesNone
DocumentNumberNumber of the document, and part of the key.String (50)
DocumentNumLarge
YesNone
AccountingDateAccounting date of the document.Date
TransDate
NoNone
AccountingEventPoints to the accounting event in AccountingEvent.Int64
AccountingEventRecId
NoAccountingEvent.RecIdNone
ApprovalStatusApproval status: none, requested, approved or rejected.Enum
DocumentLifecycleApprovalStatus (enum)
NoNone
ApprovedByID of the user who approved the document.String
UserId
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
CurrencyCodeCurrency of the document. Points to Currency.String (3)
CurrencyCode
YesCurrency.CurrencyCodeNone
DocumentDateDate of the document.Date
DocumentDate
YesNone
DocumentNumberSeriesNumber sequence used for the document number. Points to NumberSequenceTable.Int64
RefRecId
NoNumberSequenceTable.RecIdNone
DocumentTypeSettingPoints to the settings in GlobalJournalDocumentTypeSettings.Int64
GlobalJournalDocumentTypeSettingsRecId
NoGlobalJournalDocumentTypeSettings.RecIdNone
ExchangeRateExchange rate of the document.Real
ExchRate
NoNone
ExchangeRateTriangulationSecondary exchange rate, used for triangulation.Real
ExchrateSecondary
NoNone
IntercompanyYes/no flag that shows the document is intercompany.Enum
NoYes (enum)
NoNone
LedgerSystem record ID of the ledger.Int64
LedgerRecId
YesNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PostedYes/no flag that shows whether the document is posted.Enum
NoYes (enum)
NoNone
PostedDateTimeDate and time the document was posted.UtcDateTime
GlobalJournalPostedDateTime
NoNone
PostingLayerPosting layer, such as current, operations or tax.Enum
CurrentOperationsTax (enum)
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ReleaseDateDate and time of release.UtcDateTime
PostReleaseDate
NoNone
ReleaseDateCommentComment about the release date.String (60)
ReleaseDateComment
NoNone
ReportingExchangeRateExchange rate for the reporting currency.Real
ExchRate
NoNone
ReportingExchangeRateTriangulationSecondary exchange rate for the reporting currency, used for triangulation.Real
ExchrateSecondary
NoNone
ReverseDateDate on which the entry is reversed.Date
TransDate
NoNone
ReverseEntryYes/no flag that shows the entry is a reversing entry.Enum
NoYes (enum)
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
VoucherVoucher number of the document.String (20)
Voucher
NoNone
VoucherSeriesNumber sequence used for the voucher. Points to NumberSequenceTable.Int64
RefRecId
NoNumberSequenceTable.RecIdNone

Indexes (6)

Relations (7)

Each relation joins GlobalJournalDocument to another table on the fields shown.

  • GlobalJournal → GlobalJournal

    Join on GlobalJournal = GlobalJournal.RecId

    Many GlobalJournalDocument records → zero or one GlobalJournal record

  • AccountingEvent → AccountingEvent

    Join on AccountingEvent = AccountingEvent.RecId

    Many GlobalJournalDocument records → zero or one AccountingEvent record

  • DataArea → DataArea

    Join on Company = DataArea.id

    Many GlobalJournalDocument records → zero or one DataArea record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many GlobalJournalDocument records → zero or one Currency record

  • GlobalJournalDocumentTypeSettings → GlobalJournalDocumentTypeSettings

    Join on DocumentTypeSetting = GlobalJournalDocumentTypeSettings.RecId

    Many GlobalJournalDocument records → exactly one GlobalJournalDocumentTypeSettings record

  • VoucherSeries → NumberSequenceTable

    Join on VoucherSeries = NumberSequenceTable.RecId

    Many GlobalJournalDocument records → zero or one NumberSequenceTable record

  • DocumentNumberSeries → NumberSequenceTable

    Join on DocumentNumberSeries = NumberSequenceTable.RecId

    Many GlobalJournalDocument records → zero or one NumberSequenceTable record

Get this data out

No public entity reads from GlobalJournalDocument. Its data is only reachable through the application, a custom entity or a database export.

Need help with GlobalJournalDocument in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk