Table

TMSInvoiceTable

Freight invoice details

Holds freight invoice headers received from carriers. Each record is identified by an internal invoice number. It links to the vendor, carrier, route, load, shipment, payment terms and currency, and can point to a ledger journal. It also stores amounts, dates, status and shipping details such as weight, distance and bill of lading.

Table name
TMSInvoiceTable
Module
Transportation management
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
RecId
Replacement key
InternalInvNumberIdx
Key fields
InternalInvNumber
Model
Foundation

Fields (58)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
InternalInvNumberInternal invoice number. It is the unique key of the freight invoice.String (50)
TMSInternalInvNumber
YesTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntityTMSFreightInvoiceLineV2Entityand 1 more
AddressCountryRegionIdCountry or region code, pointing to the country/region record.String
AddressCountryRegionId
NoLogisticsAddressCountryRegion.CountryRegionIdTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
AutoMatchReadyYes/No flag showing whether the invoice is ready for automatic matching.Enum
TMSAutoMatchReady
NoYes (enum)
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
BillOfLadingIdBill of lading identifier for the freight covered by the invoice.String (25)
WHSBillOfLadingId
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
BookingNumBooking number for the transport booking.String (20)
TMSBookingNum
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
CarrierCodeShipping carrier code, pointing to the carrier record.String (20)
TMSCarrierCode
NoTMSCarrier.CarrierCodeTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
CarrierServiceCodeCode of the carrier service used for the freight.String (20)
TMSCarrierServiceCode
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
CashDiscCodeCash discount code, pointing to the cash discount record.String
CashDiscCode
NoCashDisc.CashDiscCodeTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
CashDiscUTCDateTimeDate and time linked to the cash discount, stored in UTC.UtcDateTime
CashDiscUTCDateTime
NoNone
CosigneeConsignee, the party receiving the freight.String (20)
TMSCosignee
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
CountryRegionISOCodeTwo-letter ISO code of the country or region.String (2)
TMSCountryRegionISOCode
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
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
CurrencyCodeCurrency of the invoice, pointing to the currency record.String (3)
CurrencyCode
YesCurrency.CurrencyCodeTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryUTCDateTimeDate and time value in UTC. The label reads "Last cycle count", which does not match the field name, so the meaning is unclear.low confidenceUtcDateTime
WHSDeliveryUTCDateTime
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
DirectionWhether the freight is inbound or outbound, or has no direction set.Enum
TMSDirection (enum)
NoNone
DiscAmountCash discount amount on the invoice; currency not stated in the metadata.Real
DiscAmount
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
DistanceDistance travelled for the freight.Real
WHSDistance
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
DistanceUOMUnit in which the distance is measured.String
WHSDistanceUOM
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
DocumentDatePosting date of the document.Date
DocumentDate
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
DocumentNumDocument number linked to the invoice.String (20)
DocumentNum
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
DueUTCDateTimeDue date and time of the invoice, stored in UTC.UtcDateTime
DueUTCDateTime
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
ExchRateExchange rate stored on the invoice.Real
ExchRate
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
InvoiceAmountInvoice amount; currency not stated in the metadata.Real
TMSInvoiceAmount
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
InvoiceDateDate shown on the invoice.Date
InvoiceDate
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
InvoiceReferenceNumReference number given on the invoice.String (100)
TMSInvoiceReferenceNum
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
InvoiceStatusStatus of the invoice, such as open, submitted, approved, rejected, partially approved or resubmitted.Enum
TMSInvoiceStatus (enum)
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
LoadIdLoad the invoice relates to, pointing to the load record.String (20)
WHSLoadId
NoWHSLoadTable.LoadIdTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
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
OrigQuoteNumNumber of the original quote.String (20)
TMSOrigQuoteNum
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PayeeAccountVendor account of the party to be paid, pointing to a vendor record.String (20)
TMSPayeeAccount
NoVendTable.AccountNumTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
PaymIdPayment identifier.String (200)
PaymId
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
ProNumPro number, a carrier tracking number for the freight.String (25)
WHSProNum
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
QtyQuantity on the invoice.Real
Qty
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
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
RefJournalNumNumber of the ledger journal linked to the invoice.String (20)
TMSRefJournalNum
NoLedgerJournalTable.JournalNumNone
RelatedAccountNumRelated account number.low confidenceString (20)
TMSRelatedAccountNum
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
RelatedOrderNumRelated order number.String (20)
TMSRelatedOrderNum
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
RouteCodeRoute the invoice relates to, pointing to the route record.String (20)
TMSRouteCode
NoTMSRoute.RouteCodeTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
SCACStandard Carrier Alpha Code that identifies the carrier.String (20)
TMSSCAC
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
ShipmentIdShipment the invoice relates to, pointing to the shipment record.String (20)
WHSShipmentId
NoWHSShipmentTable.ShipmentIdTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
ShipUTCDateTimeDate and time in UTC. The label says it is the end of holding the freight, which does not match the field name.low confidenceUtcDateTime
WHSShipUTCDateTime
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
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
TrailerNumberNumber of the trailer carrying the freight.String (30)
WHSTrailerNumber
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
VendAccountVendor account the freight invoice is linked to, pointing to a vendor record.String (20)
VendAccount
YesVendTable.AccountNumTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
VendInvoiceAccountVendor account used for invoicing, pointing to a vendor record.String (20)
VendInvoiceAccount
YesVendTable.AccountNumTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
VendInvoiceIdInvoice number given by the vendor.String (50)
VendInvoiceId
YesTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
VendPaymTermIdPayment terms code, pointing to the payment terms record.String (100)
VendPaymTermId
NoPaymTerm.PaymTermIdTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
VendRefVendor's own reference.String (60)
VendRef
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
VesselNameName of the vessel carrying the freight.String (20)
TMSVesselName
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
VoyageNumVoyage number of the vessel trip.String
TMSVoyageNum
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
WeightWeight of the freight.Real
Weight
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity
WeightUOMUnit in which the weight is measured.String
WHSWeightUOM
NoTMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity

Indexes (3)

Relations (13)

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

  • CashDisc → CashDisc

    Join on CashDiscCode = CashDisc.CashDiscCode

    Many TMSInvoiceTable records → zero or one CashDisc record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many TMSInvoiceTable records → exactly one Currency record

  • LedgerJournalTable → LedgerJournalTable

    Join on RefJournalNum = LedgerJournalTable.JournalNum

    Zero or one TMSInvoiceTable record → zero or one LedgerJournalTable record

  • LogisticsAddressCountryRegion → LogisticsAddressCountryRegion

    Join on AddressCountryRegionId = LogisticsAddressCountryRegion.CountryRegionId

    Many TMSInvoiceTable records → zero or one LogisticsAddressCountryRegion record

  • PaymTerm → PaymTerm

    Join on VendPaymTermId = PaymTerm.PaymTermId

    Many TMSInvoiceTable records → zero or one PaymTerm record

  • TMSCarrier → TMSCarrier

    Join on CarrierCode = TMSCarrier.CarrierCode

    Many TMSInvoiceTable records → exactly one TMSCarrier record

  • TMSFreightBillDetail → TMSFreightBillDetail

    Join on LoadId = TMSFreightBillDetail.LoadId

    Many TMSInvoiceTable records → zero or one TMSFreightBillDetail record

  • TMSRoute → TMSRoute

    Join on RouteCode = TMSRoute.RouteCode

    Many TMSInvoiceTable records → exactly one TMSRoute record

  • VendTable → VendTable

    Join on VendAccount = VendTable.AccountNum

    Many TMSInvoiceTable records → exactly one VendTable record

  • VendTableInvoice → VendTable

    Join on VendInvoiceAccount = VendTable.AccountNum

    Many TMSInvoiceTable records → exactly one VendTable record

  • VendTablePayee → VendTable

    Join on PayeeAccount = VendTable.AccountNum

    Many TMSInvoiceTable records → zero or one VendTable record

  • WHSLoadTable → WHSLoadTable

    Join on LoadId = WHSLoadTable.LoadId

    Many TMSInvoiceTable records → exactly one WHSLoadTable record

  • WHSShipmentTable → WHSShipmentTable

    Join on ShipmentId = WHSShipmentTable.ShipmentId

    Many TMSInvoiceTable records → exactly one WHSShipmentTable record

Get this data out

Tables are not exposed directly. These public entities read from TMSInvoiceTable; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk