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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
InternalInvNumberInternal invoice number. It points to the freight invoice header record. | String (50)TMSInternalInvNumber | Yes | TMSInvoiceTable.InternalInvNumber | None |
LineNumLine number within the invoice. | RealLineNum | Yes | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
AddressCountryRegionIdCountry or region of the address. It points to a country/region record. | StringAddressCountryRegionId | No | LogisticsAddressCountryRegion.CountryRegionId | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
AutoMatchReadyYes or No value showing whether the invoice is ready for automatic matching. | EnumTMSAutoMatchReadyNoYes (enum) | No | None | |
BillingGroupIdID of the billing group. It points to a billing group record. | String (20)TMSBillingGroupId | No | TMSBillingGroup.BillingGroupId | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
BillOfLadingIdID of the bill of lading. | String (25)WHSBillOfLadingId | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
BookingNumBooking number for the transport. | String (20)TMSBookingNum | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
CarrierCodeCode of the shipping carrier. It points to a carrier record. | String (20)TMSCarrierCode | No | TMSCarrier.CarrierCode | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
CarrierServiceCodeCode of the carrier service used. | String (20)TMSCarrierServiceCode | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
CashDiscUTCDateTimeDate and time until which a cash discount applies. | UtcDateTimeCashDiscUTCDateTime | No | None | |
CosigneeConsignee, the party receiving the goods. | String (20)TMSCosignee | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
CountryRegionISOCodeTwo-letter ISO code of the country or region. | String (2)TMSCountryRegionISOCode | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
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 code of the invoice line. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeliveryUTCDateTimeDelivery date and time. The label reads 'Last cycle count', which does not match the data type name.low confidence | UtcDateTimeWHSDeliveryUTCDateTime | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
Desc2Second line of description. | String (60)WHSDesc2 | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
DescriptionDescription of the invoice line. | String (60)Description | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
Dimension1Free-text dimension value, number 1 of 10. | String (50)TMSDimension | No | None | |
Dimension10Free-text dimension value, number 10 of 10. | String (50)TMSDimension | No | None | |
Dimension2Free-text dimension value, number 2 of 10. | String (50)TMSDimension | No | None | |
Dimension3Free-text dimension value, number 3 of 10. | String (50)TMSDimension | No | None | |
Dimension4Free-text dimension value, number 4 of 10. | String (50)TMSDimension | No | None | |
Dimension5Free-text dimension value, number 5 of 10. | String (50)TMSDimension | No | None | |
Dimension6Free-text dimension value, number 6 of 10. | String (50)TMSDimension | No | None | |
Dimension7Free-text dimension value, number 7 of 10. | String (50)TMSDimension | No | None | |
Dimension8Free-text dimension value, number 8 of 10. | String (50)TMSDimension | No | None | |
Dimension9Free-text dimension value, number 9 of 10. | String (50)TMSDimension | No | None | |
DirectionDirection of the goods movement: none, inbound or outbound. | EnumTMSDirection (enum) | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
DistanceDistance for the transport. | RealWHSDistance | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
DueUTCDateTimeDate and time at which the line is due. | UtcDateTimeDueUTCDateTime | No | None | |
ExternalCodeCode used outside the system for this item. | String (60)TMSExternalCode | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
FreightBillTypeIdType of freight bill. It points to a freight bill type record. | String (20)TMSFreightBillTypeId | No | TMSFreightBillType.FreightBillTypeId | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
HeaderChargeYes or No value showing whether the line is a header charge. | EnumTMSHeaderChargeNoYes (enum) | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
InventLocationIdWarehouse linked to the line. | StringInventLocationId | No | InventLocation.InventLocationId | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
InventSiteIdSite linked to the line. | StringInventSiteId | No | InventSite.SiteId | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
InvoiceDateDate of the invoice. | DateInvoiceDate | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
InvoiceLineStatusStatus of the line, such as open, in dispute, approved or rejected. | EnumTMSInvoiceLineStatus (enum) | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
InvoiceStatusStatus of the invoice, such as open, pending, submitted or approved. | EnumTMSInvoiceStatus (enum) | No | None | |
ItemIdItem number linked to the line. It points to an item record. | String (20)ItemId | No | InventTable.ItemId | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
LineTypeType of invoice line: accessorial charge or freight. | EnumTMSLineType (enum) | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
LoadIdID of the load the line relates to. | String (20)WHSLoadId | No | WHSLoadTable.LoadId | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
ModeCodeTransport mode. It points to a mode record. | String (20)TMSModeCode | No | TMSMode.ModeCode | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
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 | |
NetAmountNet amount of the line. Currency not stated in the metadata. | RealTMSNetAmount | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProNumPro number used to identify the shipment. | String (25)WHSProNum | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
QtyQuantity on the line. | RealQty | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
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 | |
RefRecIdSystem record ID of the freight invoice header this line belongs to. | Int64RefRecId | Yes | TMSInvoiceTable.RecId | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
RelatedAccountNumRelated account number. | String (20)TMSRelatedAccountNum | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
RelatedOrderNumRelated order number. | String (20)TMSRelatedOrderNum | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
RouteCodeCode of the route used. It points to a route record. | String (20)TMSRouteCode | No | TMSRoute.RouteCode | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
ShipCarrierTrackingNumCarrier tracking number for the shipment. | String (30)ShipCarrierTrackingNum | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
ShipmentIdID of the shipment the line relates to. | String (20)WHSShipmentId | No | WHSShipmentTable.ShipmentId | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
ShipUTCDateTimeShip date and time. The label says 'End date and time for holding freight'.low confidence | UtcDateTimeWHSShipUTCDateTime | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
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 used. | String (30)WHSTrailerNumber | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
UnitPricePrice for one unit. Currency not stated in the metadata. | RealTMSUnitPrice | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
UOMUnit of measure for the quantity. It points to a unit record. | StringWHSUOM | No | UnitOfMeasure.Symbol | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
VendAccountVendor account of the carrier. It points to a vendor record. | String (20)VendAccount | No | VendTable.AccountNum | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
VendInvoiceAccountVendor account used for invoicing. It points to a vendor record. | String (20)VendInvoiceAccount | No | VendTable.AccountNum | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
VendInvoiceIdInvoice ID given by the vendor. | String (50)VendInvoiceId | No | None | |
VesselNameName of the vessel for sea transport. | String (20)TMSVesselName | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
VoyageNumVoyage number for sea transport. | StringTMSVoyageNum | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity | |
WeightWeight on the line. | RealWeight | No | TMSFreightInvoiceLineV2EntityTMSFreightInvoiceLineEntity |
Indexes (5)
InternalInvNumberLineNumIdxReplacement keyUnique, alternate key.
CurrencyIdxNot unique.
InventSiteIdxNot unique.
InventLocationIdxNot unique.
LoadIdxNot unique.
Relations (17)
Each relation joins TMSInvoiceLine to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany TMSInvoiceLine records → exactly one Currency record
InventLocation→InventLocationJoin on
InventLocationId = InventLocation.InventLocationIdMany TMSInvoiceLine records → zero or one InventLocation record
InventSite→InventSiteJoin on
InventSiteId = InventSite.SiteIdMany TMSInvoiceLine records → zero or one InventSite record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany TMSInvoiceLine records → zero or one InventTable record
LogisticsAddressCountryRegion→LogisticsAddressCountryRegionJoin on
AddressCountryRegionId = LogisticsAddressCountryRegion.CountryRegionIdMany TMSInvoiceLine records → zero or one LogisticsAddressCountryRegion record
TMSBillingGroup→TMSBillingGroupJoin on
BillingGroupId = TMSBillingGroup.BillingGroupIdMany TMSInvoiceLine records → zero or one TMSBillingGroup record
TMSCarrier→TMSCarrierJoin on
CarrierCode = TMSCarrier.CarrierCodeMany TMSInvoiceLine records → exactly one TMSCarrier record
TMSFreightBillType→TMSFreightBillTypeJoin on
FreightBillTypeId = TMSFreightBillType.FreightBillTypeIdMany TMSInvoiceLine records → exactly one TMSFreightBillType record
TMSInvoiceTable→TMSInvoiceTableJoin on
InternalInvNumber = TMSInvoiceTable.InternalInvNumberMany TMSInvoiceLine records → exactly one TMSInvoiceTable record
TMSInvoiceTableRecId→TMSInvoiceTableJoin on
RefRecId = TMSInvoiceTable.RecIdMany TMSInvoiceLine records → exactly one TMSInvoiceTable record
TMSMode→TMSModeJoin on
ModeCode = TMSMode.ModeCodeMany TMSInvoiceLine records → exactly one TMSMode record
TMSRoute→TMSRouteJoin on
RouteCode = TMSRoute.RouteCodeMany TMSInvoiceLine records → exactly one TMSRoute record
UnitOfMeasure→UnitOfMeasureJoin on
UOM = UnitOfMeasure.SymbolMany TMSInvoiceLine records → zero or one UnitOfMeasure record
VendTable→VendTableJoin on
VendAccount = VendTable.AccountNumMany TMSInvoiceLine records → zero or one VendTable record
VendTableInvoice→VendTableJoin on
VendInvoiceAccount = VendTable.AccountNumMany TMSInvoiceLine records → zero or one VendTable record
WHSLoadTable→WHSLoadTableJoin on
LoadId = WHSLoadTable.LoadIdMany TMSInvoiceLine records → exactly one WHSLoadTable record
WHSShipmentTable→WHSShipmentTableJoin on
ShipmentId = WHSShipmentTable.ShipmentIdMany 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.
TMSFreightInvoiceLineV2Entity· 43 fields from this tableTMSFreightInvoiceLineEntity· 43 fields from this table
Need help with TMSInvoiceLine in a report, an integration or a migration? Talk to Dr Dynamics.