Table

SalesOrderTotals

Sales order totals

Stores the total amounts for a sales order, one record per sales order. It covers line total, charges, discounts, tax and the overall total. It also records when the totals were last updated.

Table name
SalesOrderTotals
Module
Sales and marketing
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
None
Replacement key
SalesIdIdx
Key fields
SalesId
Model
Foundation

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesIdSales order that these totals belong to.String (20)
SalesId
NoSalesTable.SalesIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
LastUpdatedDateTimeDate and time when the totals were last updated.UtcDateTime
SalesTotalsLastUpdatedDateTime
NoNone
LineTotalAmountTotal of the order lines.Real
MCRTotalAmount
NoNone
OrderHeaderTaxAmountSales tax amount held on the order header.Real
TaxAmount
NoSalesOrderHeaderV4EntitySalesOrderHeaderV3EntitySalesOrderHeaderV2Entityand 4 more
OrderTotalAmountOverall total amount of the order.Real
MCRTotalAmount
NoSalesOrderHeaderV4EntitySalesOrderHeaderV3EntityReturnOrderHeaderV2Entityand 7 more
OrderTotalChargesAmountTotal of the charges on the order.Real
MCRTotalMarkupAmount
NoSalesOrderHeaderV4EntitySalesOrderHeaderV3EntityReturnOrderHeaderV2Entityand 7 more
OrderTotalDiscountAmountDiscount held at the level of the whole sales order.Real
SalesDiscountAmount
NoSalesOrderHeaderV4EntitySalesOrderHeaderV3EntitySalesOrderHeaderV2Entityand 5 more
OrderTotalTaxAmountTotal tax amount for the order.Real
MCRTotalTaxAmount
NoSalesOrderHeaderV4EntitySalesOrderHeaderV3EntityReturnOrderHeaderV2Entityand 7 more
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
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
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
TotalDiscountAmountTotal discount amount for the order.Real
SalesDiscountAmount
NoSalesOrderHeaderV4EntitySalesOrderHeaderV3EntityReturnOrderHeaderV2Entityand 7 more

Indexes (1)

  • SalesIdIdxReplacement key

    SalesId

    Unique, alternate key.

Relations (1)

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

  • SalesTable → SalesTable

    Join on SalesId = SalesTable.SalesId

    Zero or one SalesOrderTotals record → exactly one SalesTable record

Get this data out

Tables are not exposed directly. These public entities read from SalesOrderTotals; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk