Data entity

TMSFreightInvoiceHeaderEntity

Holds freight invoice headers, one per internal invoice number. It covers the carrier, vendor account, amounts, dates, currency, status and load details. It shares its source table with the V2 entity.

Entity name
TMSFreightInvoiceHeaderEntity
Public entity name
FreightInvoiceHeader
OData collection
FreightInvoiceHeaders
Category
Document
Module
Transportation
Read-only
No
Data management enabled
Yes
Configuration key
WHSandTMS
Keys
InternalInvoiceNumber
Staging table
TMSFreightInvoiceHeaderStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/FreightInvoiceHeaders
Dataverse virtual table
mserp_tmsfreightinvoiceheaderentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • TMSInvoiceTable · root

Fields (45)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
ShippingCarrierVendorAccountNumberVendor account the freight invoice is linked to, pointing to a vendor record.String (20)
VendAccount
YesYesVendTable.AccountNumTMSInvoiceTable.VendAccount
DestinationCountryRegionIdCountry or region code, pointing to the country/region record.String
AddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdTMSInvoiceTable.AddressCountryRegionId
IsInvoiceAutomaticallyMatchedYes/No flag showing whether the invoice is ready for automatic matching.Enum
TMSAutoMatchReady
NoYes

Platform enum: values not in the metadata extract.

NoYesTMSInvoiceTable.AutoMatchReady
DefaultBillOfLadingIdBill of lading identifier for the freight covered by the invoice.String (25)
WHSBillOfLadingId
NoYesTMSInvoiceTable.BillOfLadingId
DefaultBookingNumberBooking number for the transport booking.String (20)
TMSBookingNum
NoYesTMSInvoiceTable.BookingNum
DefaultShippingCarrierIdShipping carrier code, pointing to the carrier record.String (20)
TMSCarrierCode
NoYesTMSCarrier.CarrierCodeTMSInvoiceTable.CarrierCode
DefaultShippingCarrierServiceIdCode of the carrier service used for the freight.String (20)
TMSCarrierServiceCode
NoYesTMSInvoiceTable.CarrierServiceCode
CashDiscountCodeCash discount code, pointing to the cash discount record.String
CashDiscCode
NoYesCashDisc.CashDiscCodeTMSInvoiceTable.CashDiscCode
DefaultCosigneeNameConsignee, the party receiving the freight.String (20)
TMSCosignee
NoYesTMSInvoiceTable.Cosignee
DestinationCountryRegionISOCodeTwo-letter ISO code of the country or region.String (2)
TMSCountryRegionISOCode
NoYesTMSInvoiceTable.CountryRegionISOCode
CurrencyCodeCurrency of the invoice, pointing to the currency record.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeTMSInvoiceTable.CurrencyCode
DefaultLastCycleCountingDateTimeDate 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
NoYesTMSInvoiceTable.DeliveryUTCDateTime
CashDiscountAmountCash discount amount on the invoice; currency not stated in the metadata.Real
DiscAmount
NoYesTMSInvoiceTable.DiscAmount
TransportationDistanceDistance travelled for the freight.Real
WHSDistance
NoYesTMSInvoiceTable.Distance
TransportationDistanceUnitIdUnit in which the distance is measured.String
WHSDistanceUOM
NoYesTMSInvoiceTable.DistanceUOM
DocumentDatePosting date of the document.Date
DocumentDate
NoYesTMSInvoiceTable.DocumentDate
DocumentNumberDocument number linked to the invoice.String (20)
DocumentNum
NoYesTMSInvoiceTable.DocumentNum
DueDateTimeDue date and time of the invoice, stored in UTC.UtcDateTime
DueUTCDateTime
NoYesTMSInvoiceTable.DueUTCDateTime
ExchangeRateExchange rate stored on the invoice.Real
ExchRate
NoYesTMSInvoiceTable.ExchRate
InternalInvoiceNumberInternal invoice number. It is the unique key of the freight invoice.String (50)
TMSInternalInvNumber
NoYesTMSInvoiceTable.InternalInvNumber
InvoiceAmountInvoice amount; currency not stated in the metadata.Real
TMSInvoiceAmount
NoYesTMSInvoiceTable.InvoiceAmount
InvoiceDateDate shown on the invoice.Date
InvoiceDate
NoYesTMSInvoiceTable.InvoiceDate
ReferenceNumberReference number given on the invoice.String (100)
TMSInvoiceReferenceNum
NoYesTMSInvoiceTable.InvoiceReferenceNum
InvoiceStatusStatus of the invoice, such as open, submitted, approved, rejected, partially approved or resubmitted.Enum
TMSInvoiceStatus
  • Open 0
  • Pending 1
  • Submitted 2
  • Approved 3
  • Rejected 4
  • PartiallyApproved 5
  • Resubmitted 6
  • PendingAfterReject 7
NoYesTMSInvoiceTable.InvoiceStatus
LoadIdLoad the invoice relates to, pointing to the load record.String (20)
WHSLoadId
NoYesWHSLoadTable.LoadIdTMSInvoiceTable.LoadId
OriginalQuoteIdNumber of the original quote.String (20)
TMSOrigQuoteNum
NoYesTMSInvoiceTable.OrigQuoteNum
PayeeVendorAccountNumberVendor account of the party to be paid, pointing to a vendor record.String (20)
TMSPayeeAccount
NoYesVendTable.AccountNumTMSInvoiceTable.PayeeAccount
PaymentIdPayment identifier.String (200)
PaymId
NoYesTMSInvoiceTable.PaymId
ProNumberCodePro number, a carrier tracking number for the freight.String (25)
WHSProNum
NoYesTMSInvoiceTable.ProNum
TotalFreightQuantityQuantity on the invoice.Real
Qty
NoYesTMSInvoiceTable.Qty
DefaultRelatedAccountNumberRelated account number.low confidenceString (20)
TMSRelatedAccountNum
NoYesTMSInvoiceTable.RelatedAccountNum
DefaultRelatedOrderNumberRelated order number.String (20)
TMSRelatedOrderNum
NoYesTMSInvoiceTable.RelatedOrderNum
TransportationRouteCodeRoute the invoice relates to, pointing to the route record.String (20)
TMSRouteCode
NoYesTMSRoute.RouteCodeTMSInvoiceTable.RouteCode
SCACCodeStandard Carrier Alpha Code that identifies the carrier.String (20)
TMSSCAC
NoYesTMSInvoiceTable.SCAC
DefaultShipmentIdShipment the invoice relates to, pointing to the shipment record.String (20)
WHSShipmentId
NoYesWHSShipmentTable.ShipmentIdTMSInvoiceTable.ShipmentId
DefaultFreightHeldUntilDateTimeDate 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
NoYesTMSInvoiceTable.ShipUTCDateTime
DefaultTrailerNumberNumber of the trailer carrying the freight.String (30)
WHSTrailerNumber
NoYesTMSInvoiceTable.TrailerNumber
InvoiceVendorAccountNumberVendor account used for invoicing, pointing to a vendor record.String (20)
VendInvoiceAccount
YesYesVendTable.AccountNumTMSInvoiceTable.VendInvoiceAccount
InvoiceNumberInvoice number given by the vendor.String (50)
VendInvoiceId
YesYesTMSInvoiceTable.VendInvoiceId
PaymentTermsNamePayment terms code, pointing to the payment terms record.String (100)
VendPaymTermId
NoYesPaymTerm.PaymTermIdTMSInvoiceTable.VendPaymTermId
VendorReferenceVendor's own reference.String (60)
VendRef
NoYesTMSInvoiceTable.VendRef
DefaultVesselNameName of the vessel carrying the freight.String (20)
TMSVesselName
NoYesTMSInvoiceTable.VesselName
DefaultVoyageNumberVoyage number of the vessel trip.String
TMSVoyageNum
NoYesTMSInvoiceTable.VoyageNum
TotalFreightWeightWeight of the freight.Real
Weight
NoYesTMSInvoiceTable.Weight
FreightWeightUnitIdUnit in which the weight is measured.String
WHSWeightUOM
NoYesTMSInvoiceTable.WeightUOM

Foreign keys (11)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

Need help with TMSFreightInvoiceHeaderEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk