Table
RetailTransactionPriceTrans
Price transaction
Holds price details for sales lines in retail transactions. Each row has a price type, such as base price, trade agreement price or price adjustment price, and a value. It links to the sales line of the transaction.
- Table name
RetailTransactionPriceTrans- Module
Commerce transactions and orders- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
TransactionPriceTransUIdx- Replacement key
TransactionPriceTransUIdx- Key fields
Channel, PriceType, RecordId, SaleLineNum, StoreId, TerminalId, TransactionId- Model
Foundation
Fields (16)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelThe retail channel of the transaction. Points to the channel record. | Int64RefRecId | No | RetailChannelTable.RecId | RetailTransactionPriceTransEntityRetailTransactionPriceTransBIEntity |
PriceTypeKind of price: none, base price, trade agreement price or price adjustment price. | EnumPriceLineType (enum) | No | RetailTransactionPriceTransEntityRetailTransactionPriceTransBIEntity | |
RecordIdReference record ID. The target is not stated.low confidence | Int64RefRecId | No | RetailTransactionPriceTransEntityRetailTransactionPriceTransBIEntity | |
SaleLineNumLine number of the sales line this price belongs to. | RealRetailTransactionSalesLineNum | No | RetailTransactionPriceTransEntityRetailTransactionPriceTransBIEntity | |
StoreIdStore where the transaction took place. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | RetailTransactionPriceTransEntityRetailTransactionPriceTransBIEntity |
TerminalIdRegister (POS terminal) where the transaction took place. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | RetailTransactionPriceTransEntityRetailTransactionPriceTransBIEntity |
TransactionIdNumber of the retail transaction. Relates to the sales line. | String (44)RetailTransactionId | Yes | RetailTransactionPriceTransEntityRetailTransactionPriceTransBIEntity | |
CalculatedPricingPriorityNumberPriority number of the price, as calculated. | IntegerRetailPricingPriorityNumber | No | RetailTransactionPriceTransBIEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | RetailTransactionPriceTransBIEntity | |
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 | RetailTransactionPriceTransBIEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
ReplicationCounterFromOriginCounter used to track replication of the record from its origin location. | IntegerRetailReplicationCounter | No | RetailTransactionPriceTransEntityRetailTransactionPriceTransBIEntity | |
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 | |
ValuePrice or discount amount for the price type. | RealPriceDiscAmount | No | RetailTransactionPriceTransEntityRetailTransactionPriceTransBIEntity |
Indexes (3)
TransactionIdSalesLineNumIdxChannel,TransactionId,SaleLineNumNot unique.
TransactionPriceTransIdxStoreId,TerminalId,TransactionId,SaleLineNum,Channel,RecordId,PriceTypeNot unique.
TransactionPriceTransUIdxPrimary indexReplacement keyChannel,PriceType,RecordId,SaleLineNum,StoreId,TerminalId,TransactionIdUnique, alternate key.
Relations (5)
Each relation joins RetailTransactionPriceTrans to another table on the fields shown.
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailTransactionPriceTrans records → zero or one RetailChannelTable record
RetailStoreTable→RetailStoreTableJoin on
StoreId = RetailStoreTable.StoreNumberMany RetailTransactionPriceTrans records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany RetailTransactionPriceTrans records → exactly one RetailTerminalTable record
RetailTransactionSalesTrans→RetailTransactionSalesTransJoin on
SaleLineNum = RetailTransactionSalesTrans.lineNum,TransactionId = RetailTransactionSalesTrans.transactionId,TerminalId = RetailTransactionSalesTrans.terminalId,StoreId = RetailTransactionSalesTrans.storeMany RetailTransactionPriceTrans records → exactly one RetailTransactionSalesTrans record
RetailTransactionTable→RetailTransactionTableJoin on
TransactionId = RetailTransactionTable.transactionId,TerminalId = RetailTransactionTable.terminal,StoreId = RetailTransactionTable.storeMany RetailTransactionPriceTrans records → exactly one RetailTransactionTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailTransactionPriceTrans; use one of them in Power BI, Power Platform or a data management project.
RetailTransactionPriceTransEntity· 9 fields from this tableRetailTransactionPriceTransBIEntity· 12 fields from this table
Need help with RetailTransactionPriceTrans in a report, an integration or a migration? Talk to Dr Dynamics.