Table
SalesOrderLineTotals
Sales order line totals
Stores calculated totals for each sales order line: discount, charges and tax. It is keyed by lot ID (InventTransId) and links to the order line in SalesLine. It feeds several sales and return order line entities and a BI entity.
- Table name
SalesOrderLineTotals- Module
Sales and marketing- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
LogisticsBasic- Primary index
None- Replacement key
InventTransIdIdx- Key fields
InventTransId- Model
Foundation
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
InventTransIdLot ID of the order line these totals belong to. | String (20)InventTransId | No | SalesLine.InventTransId | SalesOrderLineTotalsBiEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | SalesOrderLineTotalsBiEntity | |
LastUpdatedDateTimeDate and time when the totals were last updated. | UtcDateTimeSalesTotalsLastUpdatedDateTime | No | SalesOrderLineTotalsBiEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | SalesOrderLineTotalsBiEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | SalesOrderLineTotalsBiEntity | |
SalesIdSales order that the line belongs to. | String (20)SalesId | No | SalesOrderLineTotalsBiEntity | |
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 | |
TotalChargesAmountTotal charges for the line. | RealMCRTotalMarkupAmount | No | SalesOrderLineTotalsBiEntityReturnOrderLineV2EntitySalesOrderLineCDSV2Entityand 3 more | |
TotalDiscountAmountTotal discount for the line. | RealSalesDiscountAmount | No | SalesOrderLineTotalsBiEntityReturnOrderLineV2EntityReturnOrderLineCDSEntity | |
TotalTaxAmountTotal tax for the line. | RealMCRTotalTaxAmount | No | SalesOrderLineTotalsBiEntityReturnOrderLineV2EntitySalesOrderLineCDSV2Entityand 3 more |
Indexes (1)
InventTransIdIdxReplacement keyUnique, alternate key.
Relations (1)
Each relation joins SalesOrderLineTotals to another table on the fields shown.
SalesLine→SalesLineJoin on
InventTransId = SalesLine.InventTransIdZero or one SalesOrderLineTotals record → exactly one SalesLine record
Get this data out
Tables are not exposed directly. These public entities read from SalesOrderLineTotals; use one of them in Power BI, Power Platform or a data management project.
SalesOrderLineTotalsBiEntity· 9 fields from this tableReturnOrderLineV2Entity· 3 fields from this tableSalesOrderLineCDSV2Entity· 2 fields from this tableReturnOrderLineCDSEntity· 3 fields from this tableSalesOrderLineCDSEntity· 2 fields from this tableSalesOrderLineD365SalesEntity· 2 fields from this table
Need help with SalesOrderLineTotals in a report, an integration or a migration? Talk to Dr Dynamics.