Data entity
TMSFreightInvoiceHeaderV2Entity
Second version of the freight invoice header entity. It reads the same freight invoice table and uses the internal invoice number as key. It covers the carrier, vendor, amounts, dates, status and load details.
- Entity name
TMSFreightInvoiceHeaderV2Entity- Public entity name
FreightInvoiceHeaderV2- OData collection
FreightInvoiceHeadersV2- Category
Document- Module
Transportation- Read-only
No- Data management enabled
Yes- Configuration key
WHSandTMS- Keys
InternalInvoiceNumber- Staging table
TMSFreightInvoiceHeaderV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/FreightInvoiceHeadersV2- Dataverse virtual table
mserp_tmsfreightinvoiceheaderv2entity. 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 description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ShippingCarrierVendorAccountNumberVendor account the freight invoice is linked to, pointing to a vendor record. | String (20)VendAccount | Yes | Yes | VendTable.AccountNum | TMSInvoiceTable.VendAccount |
DestinationCountryRegionIdCountry or region code, pointing to the country/region record. | StringAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | TMSInvoiceTable.AddressCountryRegionId |
IsInvoiceAutomaticallyMatchedYes/No flag showing whether the invoice is ready for automatic matching. | EnumTMSAutoMatchReady
| No | Yes | TMSInvoiceTable.AutoMatchReady | |
DefaultBillOfLadingIdBill of lading identifier for the freight covered by the invoice. | String (25)WHSBillOfLadingId | No | Yes | TMSInvoiceTable.BillOfLadingId | |
DefaultBookingNumberBooking number for the transport booking. | String (20)TMSBookingNum | No | Yes | TMSInvoiceTable.BookingNum | |
DefaultShippingCarrierIdShipping carrier code, pointing to the carrier record. | String (20)TMSCarrierCode | No | Yes | TMSCarrier.CarrierCode | TMSInvoiceTable.CarrierCode |
DefaultShippingCarrierServiceIdCode of the carrier service used for the freight. | String (20)TMSCarrierServiceCode | No | Yes | TMSInvoiceTable.CarrierServiceCode | |
CashDiscountCodeCash discount code, pointing to the cash discount record. | StringCashDiscCode | No | Yes | CashDisc.CashDiscCode | TMSInvoiceTable.CashDiscCode |
DefaultCosigneeNameConsignee, the party receiving the freight. | String (20)TMSCosignee | No | Yes | TMSInvoiceTable.Cosignee | |
DestinationCountryRegionISOCodeTwo-letter ISO code of the country or region. | String (2)TMSCountryRegionISOCode | No | Yes | TMSInvoiceTable.CountryRegionISOCode | |
CurrencyCodeCurrency of the invoice, pointing to the currency record. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | TMSInvoiceTable.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 confidence | UtcDateTimeWHSDeliveryUTCDateTime | No | Yes | TMSInvoiceTable.DeliveryUTCDateTime | |
CashDiscountAmountCash discount amount on the invoice; currency not stated in the metadata. | RealDiscAmount | No | Yes | TMSInvoiceTable.DiscAmount | |
TransportationDistanceDistance travelled for the freight. | RealWHSDistance | No | Yes | TMSInvoiceTable.Distance | |
TransportationDistanceUnitIdUnit in which the distance is measured. | StringWHSDistanceUOM | No | Yes | TMSInvoiceTable.DistanceUOM | |
DocumentDatePosting date of the document. | DateDocumentDate | No | Yes | TMSInvoiceTable.DocumentDate | |
DocumentNumberDocument number linked to the invoice. | String (20)DocumentNum | No | Yes | TMSInvoiceTable.DocumentNum | |
DueDateTimeDue date and time of the invoice, stored in UTC. | UtcDateTimeDueUTCDateTime | No | Yes | TMSInvoiceTable.DueUTCDateTime | |
ExchangeRateExchange rate stored on the invoice. | RealExchRate | No | Yes | TMSInvoiceTable.ExchRate | |
InternalInvoiceNumberInternal invoice number. It is the unique key of the freight invoice. | String (50)TMSInternalInvNumber | No | Yes | TMSInvoiceTable.InternalInvNumber | |
InvoiceAmountInvoice amount; currency not stated in the metadata. | RealTMSInvoiceAmount | No | Yes | TMSInvoiceTable.InvoiceAmount | |
InvoiceDateDate shown on the invoice. | DateInvoiceDate | No | Yes | TMSInvoiceTable.InvoiceDate | |
ReferenceNumberReference number given on the invoice. | String (100)TMSInvoiceReferenceNum | No | Yes | TMSInvoiceTable.InvoiceReferenceNum | |
InvoiceStatusStatus of the invoice, such as open, submitted, approved, rejected, partially approved or resubmitted. | Enum
| No | Yes | TMSInvoiceTable.InvoiceStatus | |
LoadIdLoad the invoice relates to, pointing to the load record. | String (20)WHSLoadId | No | Yes | WHSLoadTable.LoadId | TMSInvoiceTable.LoadId |
OriginalQuoteIdNumber of the original quote. | String (20)TMSOrigQuoteNum | No | Yes | TMSInvoiceTable.OrigQuoteNum | |
PayeeVendorAccountNumberVendor account of the party to be paid, pointing to a vendor record. | String (20)TMSPayeeAccount | No | Yes | VendTable.AccountNum | TMSInvoiceTable.PayeeAccount |
PaymentIdPayment identifier. | String (200)PaymId | No | Yes | TMSInvoiceTable.PaymId | |
ProNumberCodePro number, a carrier tracking number for the freight. | String (25)WHSProNum | No | Yes | TMSInvoiceTable.ProNum | |
TotalFreightQuantityQuantity on the invoice. | RealQty | No | Yes | TMSInvoiceTable.Qty | |
DefaultRelatedAccountNumberRelated account number.low confidence | String (20)TMSRelatedAccountNum | No | Yes | TMSInvoiceTable.RelatedAccountNum | |
DefaultRelatedOrderNumberRelated order number. | String (20)TMSRelatedOrderNum | No | Yes | TMSInvoiceTable.RelatedOrderNum | |
TransportationRouteCodeRoute the invoice relates to, pointing to the route record. | String (20)TMSRouteCode | No | Yes | TMSRoute.RouteCode | TMSInvoiceTable.RouteCode |
SCACCodeStandard Carrier Alpha Code that identifies the carrier. | String (20)TMSSCAC | No | Yes | TMSInvoiceTable.SCAC | |
DefaultShipmentIdShipment the invoice relates to, pointing to the shipment record. | String (20)WHSShipmentId | No | Yes | WHSShipmentTable.ShipmentId | TMSInvoiceTable.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 confidence | UtcDateTimeWHSShipUTCDateTime | No | Yes | TMSInvoiceTable.ShipUTCDateTime | |
DefaultTrailerNumberNumber of the trailer carrying the freight. | String (30)WHSTrailerNumber | No | Yes | TMSInvoiceTable.TrailerNumber | |
InvoiceVendorAccountNumberVendor account used for invoicing, pointing to a vendor record. | String (20)VendInvoiceAccount | Yes | Yes | VendTable.AccountNum | TMSInvoiceTable.VendInvoiceAccount |
InvoiceNumberInvoice number given by the vendor. | String (50)VendInvoiceId | Yes | Yes | TMSInvoiceTable.VendInvoiceId | |
PaymentTermsNamePayment terms code, pointing to the payment terms record. | String (100)VendPaymTermId | No | Yes | PaymTerm.PaymTermId | TMSInvoiceTable.VendPaymTermId |
VendorReferenceVendor's own reference. | String (60)VendRef | No | Yes | TMSInvoiceTable.VendRef | |
DefaultVesselNameName of the vessel carrying the freight. | String (20)TMSVesselName | No | Yes | TMSInvoiceTable.VesselName | |
DefaultVoyageNumberVoyage number of the vessel trip. | StringTMSVoyageNum | No | Yes | TMSInvoiceTable.VoyageNum | |
TotalFreightWeightWeight of the freight. | RealWeight | No | Yes | TMSInvoiceTable.Weight | |
FreightWeightUnitIdUnit in which the weight is measured. | StringWHSWeightUOM | No | Yes | TMSInvoiceTable.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.
ShippingCarrierVendorAccountNumber→VendTable.AccountNum(key of VendTable)Many TMSInvoiceTable records → exactly one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
DestinationCountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many TMSInvoiceTable records → zero or one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
DefaultShippingCarrierId→TMSCarrier.CarrierCode(key of TMSCarrier)Many TMSInvoiceTable records → exactly one TMSCarrier record
TMSCarrier details: see TMSShippingCarrierEntity, TMSTransportationAppointmentDriverLogEntity, TMSTransportationAppointmentEntity
CashDiscountCode→CashDisc.CashDiscCode(key of CashDisc)Many TMSInvoiceTable records → zero or one CashDisc record
CashDisc details: see CashDiscountEntity, CredManCashDiscRankEntity, CashDiscBiEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many TMSInvoiceTable records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
LoadId→WHSLoadTable.LoadId(key of WHSLoadTable)Many TMSInvoiceTable records → exactly one WHSLoadTable record
WHSLoadTable details: see WHSInboundLoadHeaderEntity, WHSOutboundLoadHeaderEntity, WHSLoadTableBiEntity
PayeeVendorAccountNumber→VendTable.AccountNum(key of VendTable)Many TMSInvoiceTable records → zero or one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
TransportationRouteCode→TMSRoute.RouteCode(key of TMSRoute)Many TMSInvoiceTable records → exactly one TMSRoute record
Not exposed by a public entity.
DefaultShipmentId→WHSShipmentTable.ShipmentId(key of WHSShipmentTable)Many TMSInvoiceTable records → exactly one WHSShipmentTable record
WHSShipmentTable details: see WHSOutboundShipmentHeaderEntity, WHSInboundShipmentHeaderEntity, WHSShipmentTableBiEntity
InvoiceVendorAccountNumber→VendTable.AccountNum(key of VendTable)Many TMSInvoiceTable records → exactly one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
PaymentTermsName→PaymTerm.PaymTermId(key of PaymTerm)Many TMSInvoiceTable records → zero or one PaymTerm record
PaymTerm details: see PaymentTermEntity, CredManPaymTermRankEntity, TaxWithholdSettlementPeriodEntity
Need help with TMSFreightInvoiceHeaderV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.