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 descriptionType / EDT / enumMandatoryReferencesIn public entities
amountCurAmount in the transaction currency.Real
AmountCur
NoNone
ChannelRecord ID of the channel the transaction belongs to.Int64
RefRecId
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
invoiceIdNumber of the invoice.String (50)
InvoiceId
NoNone
lineNumLine number within the transaction.Real
LineNum
NoNone
OriginNumber of the location the record came from.String (50)
RetailConnDistributionLocationId
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
replicationCounterFromOriginCounter value used when the record is replicated from its originating location.Integer
RetailReplicationCounter
NoNone
salesIdNumber of the sales order.String (20)
SalesId
NoNone
salesOrderInvoiceTypeShows whether the line refers to a sales order or a sales invoice.Enum
RetailSalesOrderInvoiceType (enum)
NoNone
statementIdNumber of the statement the transaction belongs to.String (20)
RetailStatementId
NoNone
storeIdNumber of the store where the transaction took place.String
RetailStoreId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
terminalIdNumber of the register used for the transaction.String
RetailTerminalId
NoNone
transactionIdNumber of the retail transaction.String (44)
RetailTransactionId
NoNone
transactionStatusStatus of the entry, such as posted, voided, on hold or cancelled.Enum
RetailTransEntryStatus
RetailEntryStatus (enum)
NoNone

Indexes (2)

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.

Email sales@drdynamics.co.uk