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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
InternalInvNumberInternal invoice number. It is the unique key of the freight invoice. | String (50)TMSInternalInvNumber | Yes | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntityTMSFreightInvoiceLineV2Entityand 1 more | |
AddressCountryRegionIdCountry or region code, pointing to the country/region record. | StringAddressCountryRegionId | No | LogisticsAddressCountryRegion.CountryRegionId | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity |
AutoMatchReadyYes/No flag showing whether the invoice is ready for automatic matching. | EnumTMSAutoMatchReadyNoYes (enum) | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
BillOfLadingIdBill of lading identifier for the freight covered by the invoice. | String (25)WHSBillOfLadingId | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
BookingNumBooking number for the transport booking. | String (20)TMSBookingNum | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
CarrierCodeShipping carrier code, pointing to the carrier record. | String (20)TMSCarrierCode | No | TMSCarrier.CarrierCode | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity |
CarrierServiceCodeCode of the carrier service used for the freight. | String (20)TMSCarrierServiceCode | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
CashDiscCodeCash discount code, pointing to the cash discount record. | StringCashDiscCode | No | CashDisc.CashDiscCode | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity |
CashDiscUTCDateTimeDate and time linked to the cash discount, stored in UTC. | UtcDateTimeCashDiscUTCDateTime | No | None | |
CosigneeConsignee, the party receiving the freight. | String (20)TMSCosignee | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
CountryRegionISOCodeTwo-letter ISO code of the country or region. | String (2)TMSCountryRegionISOCode | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CurrencyCodeCurrency of the invoice, pointing to the currency record. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
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 confidence | UtcDateTimeWHSDeliveryUTCDateTime | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
DirectionWhether the freight is inbound or outbound, or has no direction set. | EnumTMSDirection (enum) | No | None | |
DiscAmountCash discount amount on the invoice; currency not stated in the metadata. | RealDiscAmount | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
DistanceDistance travelled for the freight. | RealWHSDistance | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
DistanceUOMUnit in which the distance is measured. | StringWHSDistanceUOM | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
DocumentDatePosting date of the document. | DateDocumentDate | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
DocumentNumDocument number linked to the invoice. | String (20)DocumentNum | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
DueUTCDateTimeDue date and time of the invoice, stored in UTC. | UtcDateTimeDueUTCDateTime | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
ExchRateExchange rate stored on the invoice. | RealExchRate | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
InvoiceAmountInvoice amount; currency not stated in the metadata. | RealTMSInvoiceAmount | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
InvoiceDateDate shown on the invoice. | DateInvoiceDate | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
InvoiceReferenceNumReference number given on the invoice. | String (100)TMSInvoiceReferenceNum | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
InvoiceStatusStatus of the invoice, such as open, submitted, approved, rejected, partially approved or resubmitted. | EnumTMSInvoiceStatus (enum) | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
LoadIdLoad the invoice relates to, pointing to the load record. | String (20)WHSLoadId | No | WHSLoadTable.LoadId | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
OrigQuoteNumNumber of the original quote. | String (20)TMSOrigQuoteNum | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PayeeAccountVendor account of the party to be paid, pointing to a vendor record. | String (20)TMSPayeeAccount | No | VendTable.AccountNum | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity |
PaymIdPayment identifier. | String (200)PaymId | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
ProNumPro number, a carrier tracking number for the freight. | String (25)WHSProNum | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
QtyQuantity on the invoice. | RealQty | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RefJournalNumNumber of the ledger journal linked to the invoice. | String (20)TMSRefJournalNum | No | LedgerJournalTable.JournalNum | None |
RelatedAccountNumRelated account number.low confidence | String (20)TMSRelatedAccountNum | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
RelatedOrderNumRelated order number. | String (20)TMSRelatedOrderNum | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
RouteCodeRoute the invoice relates to, pointing to the route record. | String (20)TMSRouteCode | No | TMSRoute.RouteCode | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity |
SCACStandard Carrier Alpha Code that identifies the carrier. | String (20)TMSSCAC | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
ShipmentIdShipment the invoice relates to, pointing to the shipment record. | String (20)WHSShipmentId | No | WHSShipmentTable.ShipmentId | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity |
ShipUTCDateTimeDate and time in UTC. The label says it is the end of holding the freight, which does not match the field name.low confidence | UtcDateTimeWHSShipUTCDateTime | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TrailerNumberNumber of the trailer carrying the freight. | String (30)WHSTrailerNumber | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
VendAccountVendor account the freight invoice is linked to, pointing to a vendor record. | String (20)VendAccount | Yes | VendTable.AccountNum | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity |
VendInvoiceAccountVendor account used for invoicing, pointing to a vendor record. | String (20)VendInvoiceAccount | Yes | VendTable.AccountNum | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity |
VendInvoiceIdInvoice number given by the vendor. | String (50)VendInvoiceId | Yes | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
VendPaymTermIdPayment terms code, pointing to the payment terms record. | String (100)VendPaymTermId | No | PaymTerm.PaymTermId | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity |
VendRefVendor's own reference. | String (60)VendRef | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
VesselNameName of the vessel carrying the freight. | String (20)TMSVesselName | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
VoyageNumVoyage number of the vessel trip. | StringTMSVoyageNum | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
WeightWeight of the freight. | RealWeight | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity | |
WeightUOMUnit in which the weight is measured. | StringWHSWeightUOM | No | TMSFreightInvoiceHeaderV2EntityTMSFreightInvoiceHeaderEntity |
Indexes (3)
InternalInvNumberIdxReplacement keyUnique, alternate key.
VendAccountVendInvoiceIdxUnique.
LoadIdxNot unique.
Relations (13)
Each relation joins TMSInvoiceTable to another table on the fields shown.
CashDisc→CashDiscJoin on
CashDiscCode = CashDisc.CashDiscCodeMany TMSInvoiceTable records → zero or one CashDisc record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany TMSInvoiceTable records → exactly one Currency record
LedgerJournalTable→LedgerJournalTableJoin on
RefJournalNum = LedgerJournalTable.JournalNumZero or one TMSInvoiceTable record → zero or one LedgerJournalTable record
LogisticsAddressCountryRegion→LogisticsAddressCountryRegionJoin on
AddressCountryRegionId = LogisticsAddressCountryRegion.CountryRegionIdMany TMSInvoiceTable records → zero or one LogisticsAddressCountryRegion record
PaymTerm→PaymTermJoin on
VendPaymTermId = PaymTerm.PaymTermIdMany TMSInvoiceTable records → zero or one PaymTerm record
TMSCarrier→TMSCarrierJoin on
CarrierCode = TMSCarrier.CarrierCodeMany TMSInvoiceTable records → exactly one TMSCarrier record
TMSFreightBillDetail→TMSFreightBillDetailJoin on
LoadId = TMSFreightBillDetail.LoadIdMany TMSInvoiceTable records → zero or one TMSFreightBillDetail record
TMSRoute→TMSRouteJoin on
RouteCode = TMSRoute.RouteCodeMany TMSInvoiceTable records → exactly one TMSRoute record
VendTable→VendTableJoin on
VendAccount = VendTable.AccountNumMany TMSInvoiceTable records → exactly one VendTable record
VendTableInvoice→VendTableJoin on
VendInvoiceAccount = VendTable.AccountNumMany TMSInvoiceTable records → exactly one VendTable record
VendTablePayee→VendTableJoin on
PayeeAccount = VendTable.AccountNumMany TMSInvoiceTable records → zero or one VendTable record
WHSLoadTable→WHSLoadTableJoin on
LoadId = WHSLoadTable.LoadIdMany TMSInvoiceTable records → exactly one WHSLoadTable record
WHSShipmentTable→WHSShipmentTableJoin on
ShipmentId = WHSShipmentTable.ShipmentIdMany 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.
TMSFreightInvoiceHeaderV2Entity· 45 fields from this tableTMSFreightInvoiceHeaderEntity· 45 fields from this tableTMSFreightInvoiceLineV2Entity· 1 field from this tableTMSFreightInvoiceLineEntity· 1 field from this table
Need help with TMSInvoiceTable in a report, an integration or a migration? Talk to Dr Dynamics.