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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelRecord ID reference to the channel; the metadata names no related table.low confidenceInt64
RefRecId
NoNone
PriceTypeKind of price: none, base price, trade agreement price or price adjustment price.Enum
PriceLineType (enum)
NoNone
RecordIdRecord ID reference that forms part of the key; the metadata names no related table.low confidenceInt64
RefRecId
NoNone
SaleLineNumLine number of the sales line in the transaction.Real
RetailTransactionSalesLineNum
NoNone
StoreIdNumber of the store where the transaction took place.String
RetailStoreId
NoNone
TerminalIdNumber of the register where the transaction took place.String
RetailTerminalId
NoNone
TransactionIdNumber that identifies the retail transaction.String (44)
RetailTransactionId
YesNone
CalculatedPricingPriorityNumberPricing priority number stored for the price line.Integer
RetailPricingPriorityNumber
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
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
ReplicationCounterFromOriginReplication counter value taken from the originating location.Integer
RetailReplicationCounter
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
ValuePrice or discount amount for the price type.Real
PriceDiscAmount
NoNone

Indexes (1)

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.

Email sales@drdynamics.co.uk