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 descriptionType / EDT / enumMandatoryReferencesIn public entities
InventTransIdLot ID of the order line these totals belong to.String (20)
InventTransId
NoSalesLine.InventTransIdSalesOrderLineTotalsBiEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoSalesOrderLineTotalsBiEntity
LastUpdatedDateTimeDate and time when the totals were last updated.UtcDateTime
SalesTotalsLastUpdatedDateTime
NoSalesOrderLineTotalsBiEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoSalesOrderLineTotalsBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoSalesOrderLineTotalsBiEntity
SalesIdSales order that the line belongs to.String (20)
SalesId
NoSalesOrderLineTotalsBiEntity
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
TotalChargesAmountTotal charges for the line.Real
MCRTotalMarkupAmount
NoSalesOrderLineTotalsBiEntityReturnOrderLineV2EntitySalesOrderLineCDSV2Entityand 3 more
TotalDiscountAmountTotal discount for the line.Real
SalesDiscountAmount
NoSalesOrderLineTotalsBiEntityReturnOrderLineV2EntityReturnOrderLineCDSEntity
TotalTaxAmountTotal tax for the line.Real
MCRTotalTaxAmount
NoSalesOrderLineTotalsBiEntityReturnOrderLineV2EntitySalesOrderLineCDSV2Entityand 3 more

Indexes (1)

  • InventTransIdIdxReplacement key

    InventTransId

    Unique, alternate key.

Relations (1)

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

  • SalesLine → SalesLine

    Join on InventTransId = SalesLine.InventTransId

    Zero 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.

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

Email sales@drdynamics.co.uk