Table
RetailTransactionPriceTransHistory
Archived commerce price transactions
Holds archived price records for retail sales lines. Each row gives a price type and an amount for one sales line of a transaction. The key is channel, price type, record ID, sales line number, store, register and transaction number.
- Table name
RetailTransactionPriceTransHistory- Module
Commerce transactions and orders- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
TransactionPriceTransUIdx- Replacement key
None- Key fields
Channel, PriceType, RecordId, SaleLineNum, StoreId, TerminalId, TransactionId- Model
Foundation
Fields (16)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelRecord ID reference to the channel; the metadata names no related table.low confidence | Int64RefRecId | No | None | |
PriceTypeKind of price: none, base price, trade agreement price or price adjustment price. | EnumPriceLineType (enum) | No | None | |
RecordIdRecord ID reference that forms part of the key; the metadata names no related table.low confidence | Int64RefRecId | No | None | |
SaleLineNumLine number of the sales line in the transaction. | RealRetailTransactionSalesLineNum | No | None | |
StoreIdNumber of the store where the transaction took place. | StringRetailStoreId | No | None | |
TerminalIdNumber of the register where the transaction took place. | StringRetailTerminalId | No | None | |
TransactionIdNumber that identifies the retail transaction. | String (44)RetailTransactionId | Yes | None | |
CalculatedPricingPriorityNumberPricing priority number stored for the price line. | IntegerRetailPricingPriorityNumber | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
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 | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
ReplicationCounterFromOriginReplication counter value taken from the originating location. | IntegerRetailReplicationCounter | No | None | |
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 | None |
Indexes (1)
TransactionPriceTransUIdxPrimary indexChannel,PriceType,RecordId,SaleLineNum,StoreId,TerminalId,TransactionIdUnique, alternate key.
Get this data out
No public entity reads from RetailTransactionPriceTransHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailTransactionPriceTransHistory in a report, an integration or a migration? Talk to Dr Dynamics.