Table

TMSLedgerJourRef

Ledger Journal Reference

Links ledger journals to transportation records. The key combines a reference table ID, a journal number and a record ID. The record link points to freight bill details, and the journal number points to the ledger journal.

Table name
TMSLedgerJourRef
Module
Transportation management
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
JourInvoiceLineRecIdx
Replacement key
JourInvoiceLineRecIdx
Key fields
RefTableId, RefJournalNum, RefRecId
Model
Foundation

Fields (8)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RefTableIdID of the table that the referenced record belongs to.Integer
RefTableId
NoNone
RefJournalNumNumber of the ledger journal that is referenced.String (20)
TMSRefJournalNum
YesLedgerJournalTable.JournalNumNone
RefRecIdSystem record ID of the referenced transportation record, such as a freight bill detail.Int64
RefRecId
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (3)

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

  • LedgerJournalTable → LedgerJournalTable

    Join on RefJournalNum = LedgerJournalTable.JournalNum

    Many TMSLedgerJourRef records → exactly one LedgerJournalTable record

  • TMSFreightBillDetail → TMSFreightBillDetail

    Join on RefTableId = TMSFreightBillDetail.TableId, RefRecId = TMSFreightBillDetail.RecId

    Many TMSLedgerJourRef records → zero or one TMSFreightBillDetail record

  • TMSInvoiceLine → TMSInvoiceLine

    Join on RefTableId = TMSInvoiceLine.TableId, RefRecId = TMSInvoiceLine.RecId

    Many TMSLedgerJourRef records → zero or one TMSInvoiceLine record

Get this data out

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

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

Email sales@drdynamics.co.uk