Table

TMSInvoiceLine

Freight invoice lines

Holds the lines of freight invoices from carriers. A line is identified by the internal invoice number and the line number. It records amounts, quantities, dates, status and addresses. It links to the carrier, load, shipment, route, item, vendor and the freight invoice header.

Table name
TMSInvoiceLine
Module
Transportation management
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
RecId
Replacement key
InternalInvNumberLineNumIdx
Key fields
InternalInvNumber, LineNum
Model
Foundation

Fields (70)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
InternalInvNumberInternal invoice number. It points to the freight invoice header record.String (50)
TMSInternalInvNumber
YesTMSInvoiceTable.InternalInvNumberNone
LineNumLine number within the invoice.Real
LineNum
YesTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
AddressCountryRegionIdCountry or region of the address. It points to a country/region record.String
AddressCountryRegionId
NoLogisticsAddressCountryRegion.CountryRegionIdTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
AutoMatchReadyYes or No value showing whether the invoice is ready for automatic matching.Enum
TMSAutoMatchReady
NoYes (enum)
NoNone
BillingGroupIdID of the billing group. It points to a billing group record.String (20)
TMSBillingGroupId
NoTMSBillingGroup.BillingGroupIdTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
BillOfLadingIdID of the bill of lading.String (25)
WHSBillOfLadingId
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
BookingNumBooking number for the transport.String (20)
TMSBookingNum
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
CarrierCodeCode of the shipping carrier. It points to a carrier record.String (20)
TMSCarrierCode
NoTMSCarrier.CarrierCodeTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
CarrierServiceCodeCode of the carrier service used.String (20)
TMSCarrierServiceCode
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
CashDiscUTCDateTimeDate and time until which a cash discount applies.UtcDateTime
CashDiscUTCDateTime
NoNone
CosigneeConsignee, the party receiving the goods.String (20)
TMSCosignee
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
CountryRegionISOCodeTwo-letter ISO code of the country or region.String (2)
TMSCountryRegionISOCode
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
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 code of the invoice line.String (3)
CurrencyCode
YesCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryUTCDateTimeDelivery date and time. The label reads 'Last cycle count', which does not match the data type name.low confidenceUtcDateTime
WHSDeliveryUTCDateTime
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
Desc2Second line of description.String (60)
WHSDesc2
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
DescriptionDescription of the invoice line.String (60)
Description
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
Dimension1Free-text dimension value, number 1 of 10.String (50)
TMSDimension
NoNone
Dimension10Free-text dimension value, number 10 of 10.String (50)
TMSDimension
NoNone
Dimension2Free-text dimension value, number 2 of 10.String (50)
TMSDimension
NoNone
Dimension3Free-text dimension value, number 3 of 10.String (50)
TMSDimension
NoNone
Dimension4Free-text dimension value, number 4 of 10.String (50)
TMSDimension
NoNone
Dimension5Free-text dimension value, number 5 of 10.String (50)
TMSDimension
NoNone
Dimension6Free-text dimension value, number 6 of 10.String (50)
TMSDimension
NoNone
Dimension7Free-text dimension value, number 7 of 10.String (50)
TMSDimension
NoNone
Dimension8Free-text dimension value, number 8 of 10.String (50)
TMSDimension
NoNone
Dimension9Free-text dimension value, number 9 of 10.String (50)
TMSDimension
NoNone
DirectionDirection of the goods movement: none, inbound or outbound.Enum
TMSDirection (enum)
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
DistanceDistance for the transport.Real
WHSDistance
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
DueUTCDateTimeDate and time at which the line is due.UtcDateTime
DueUTCDateTime
NoNone
ExternalCodeCode used outside the system for this item.String (60)
TMSExternalCode
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
FreightBillTypeIdType of freight bill. It points to a freight bill type record.String (20)
TMSFreightBillTypeId
NoTMSFreightBillType.FreightBillTypeIdTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
HeaderChargeYes or No value showing whether the line is a header charge.Enum
TMSHeaderCharge
NoYes (enum)
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
InventLocationIdWarehouse linked to the line.String
InventLocationId
NoInventLocation.InventLocationIdTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
InventSiteIdSite linked to the line.String
InventSiteId
NoInventSite.SiteIdTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
InvoiceDateDate of the invoice.Date
InvoiceDate
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
InvoiceLineStatusStatus of the line, such as open, in dispute, approved or rejected.Enum
TMSInvoiceLineStatus (enum)
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
InvoiceStatusStatus of the invoice, such as open, pending, submitted or approved.Enum
TMSInvoiceStatus (enum)
NoNone
ItemIdItem number linked to the line. It points to an item record.String (20)
ItemId
NoInventTable.ItemIdTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
LineTypeType of invoice line: accessorial charge or freight.Enum
TMSLineType (enum)
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
LoadIdID of the load the line relates to.String (20)
WHSLoadId
NoWHSLoadTable.LoadIdTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
ModeCodeTransport mode. It points to a mode record.String (20)
TMSModeCode
NoTMSMode.ModeCodeTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
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
NetAmountNet amount of the line. Currency not stated in the metadata.Real
TMSNetAmount
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProNumPro number used to identify the shipment.String (25)
WHSProNum
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
QtyQuantity on the line.Real
Qty
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
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
RefRecIdSystem record ID of the freight invoice header this line belongs to.Int64
RefRecId
YesTMSInvoiceTable.RecIdTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
RelatedAccountNumRelated account number.String (20)
TMSRelatedAccountNum
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
RelatedOrderNumRelated order number.String (20)
TMSRelatedOrderNum
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
RouteCodeCode of the route used. It points to a route record.String (20)
TMSRouteCode
NoTMSRoute.RouteCodeTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
ShipCarrierTrackingNumCarrier tracking number for the shipment.String (30)
ShipCarrierTrackingNum
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
ShipmentIdID of the shipment the line relates to.String (20)
WHSShipmentId
NoWHSShipmentTable.ShipmentIdTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
ShipUTCDateTimeShip date and time. The label says 'End date and time for holding freight'.low confidenceUtcDateTime
WHSShipUTCDateTime
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
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 used.String (30)
WHSTrailerNumber
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
UnitPricePrice for one unit. Currency not stated in the metadata.Real
TMSUnitPrice
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
UOMUnit of measure for the quantity. It points to a unit record.String
WHSUOM
NoUnitOfMeasure.SymbolTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
VendAccountVendor account of the carrier. It points to a vendor record.String (20)
VendAccount
NoVendTable.AccountNumTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
VendInvoiceAccountVendor account used for invoicing. It points to a vendor record.String (20)
VendInvoiceAccount
NoVendTable.AccountNumTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
VendInvoiceIdInvoice ID given by the vendor.String (50)
VendInvoiceId
NoNone
VesselNameName of the vessel for sea transport.String (20)
TMSVesselName
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
VoyageNumVoyage number for sea transport.String
TMSVoyageNum
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity
WeightWeight on the line.Real
Weight
NoTMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity

Indexes (5)

Relations (17)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many TMSInvoiceLine records → exactly one Currency record

  • InventLocation → InventLocation

    Join on InventLocationId = InventLocation.InventLocationId

    Many TMSInvoiceLine records → zero or one InventLocation record

  • InventSite → InventSite

    Join on InventSiteId = InventSite.SiteId

    Many TMSInvoiceLine records → zero or one InventSite record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many TMSInvoiceLine records → zero or one InventTable record

  • LogisticsAddressCountryRegion → LogisticsAddressCountryRegion

    Join on AddressCountryRegionId = LogisticsAddressCountryRegion.CountryRegionId

    Many TMSInvoiceLine records → zero or one LogisticsAddressCountryRegion record

  • TMSBillingGroup → TMSBillingGroup

    Join on BillingGroupId = TMSBillingGroup.BillingGroupId

    Many TMSInvoiceLine records → zero or one TMSBillingGroup record

  • TMSCarrier → TMSCarrier

    Join on CarrierCode = TMSCarrier.CarrierCode

    Many TMSInvoiceLine records → exactly one TMSCarrier record

  • TMSFreightBillType → TMSFreightBillType

    Join on FreightBillTypeId = TMSFreightBillType.FreightBillTypeId

    Many TMSInvoiceLine records → exactly one TMSFreightBillType record

  • TMSInvoiceTable → TMSInvoiceTable

    Join on InternalInvNumber = TMSInvoiceTable.InternalInvNumber

    Many TMSInvoiceLine records → exactly one TMSInvoiceTable record

  • TMSInvoiceTableRecId → TMSInvoiceTable

    Join on RefRecId = TMSInvoiceTable.RecId

    Many TMSInvoiceLine records → exactly one TMSInvoiceTable record

  • TMSMode → TMSMode

    Join on ModeCode = TMSMode.ModeCode

    Many TMSInvoiceLine records → exactly one TMSMode record

  • TMSRoute → TMSRoute

    Join on RouteCode = TMSRoute.RouteCode

    Many TMSInvoiceLine records → exactly one TMSRoute record

  • UnitOfMeasure → UnitOfMeasure

    Join on UOM = UnitOfMeasure.Symbol

    Many TMSInvoiceLine records → zero or one UnitOfMeasure record

  • VendTable → VendTable

    Join on VendAccount = VendTable.AccountNum

    Many TMSInvoiceLine records → zero or one VendTable record

  • VendTableInvoice → VendTable

    Join on VendInvoiceAccount = VendTable.AccountNum

    Many TMSInvoiceLine records → zero or one VendTable record

  • WHSLoadTable → WHSLoadTable

    Join on LoadId = WHSLoadTable.LoadId

    Many TMSInvoiceLine records → exactly one WHSLoadTable record

  • WHSShipmentTable → WHSShipmentTable

    Join on ShipmentId = WHSShipmentTable.ShipmentId

    Many TMSInvoiceLine records → exactly one WHSShipmentTable record

Get this data out

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

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

Email sales@drdynamics.co.uk