Table
RetailTransactionOrderInvoiceTransHistory
Archived order invoice transactions
Archived order and invoice lines from retail transactions. Each line points to a sales order or a sales invoice and holds an amount. It also records the store, register, statement and transaction status.
- Table name
RetailTransactionOrderInvoiceTransHistory- Module
Commerce transactions and orders- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (18)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
amountCurAmount in the transaction currency. | RealAmountCur | No | None | |
ChannelRecord ID of the channel the transaction belongs to. | Int64RefRecId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
invoiceIdNumber of the invoice. | String (50)InvoiceId | No | None | |
lineNumLine number within the transaction. | RealLineNum | No | None | |
OriginNumber of the location the record came from. | String (50)RetailConnDistributionLocationId | 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 | |
replicationCounterFromOriginCounter value used when the record is replicated from its originating location. | IntegerRetailReplicationCounter | No | None | |
salesIdNumber of the sales order. | String (20)SalesId | No | None | |
salesOrderInvoiceTypeShows whether the line refers to a sales order or a sales invoice. | EnumRetailSalesOrderInvoiceType (enum) | No | None | |
statementIdNumber of the statement the transaction belongs to. | String (20)RetailStatementId | No | None | |
storeIdNumber of the store where the transaction took place. | StringRetailStoreId | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
terminalIdNumber of the register used for the transaction. | StringRetailTerminalId | No | None | |
transactionIdNumber of the retail transaction. | String (44)RetailTransactionId | No | None | |
transactionStatusStatus of the entry, such as posted, voided, on hold or cancelled. | EnumRetailTransEntryStatusRetailEntryStatus (enum) | No | None |
Indexes (2)
transactionLineIdxChannel,storeId,terminalId,transactionId,lineNum,DataAreaId,PartitionUnique, alternate key.
transactionIdxChannel,storeId,terminalId,transactionId,DataAreaId,PartitionNot unique.
Get this data out
No public entity reads from RetailTransactionOrderInvoiceTransHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailTransactionOrderInvoiceTransHistory in a report, an integration or a migration? Talk to Dr Dynamics.