Table

RetailTransactionTableHistory

Archived transactions

Archive of retail point-of-sale transactions, one record per transaction. It is identified by channel, store, register, transaction number, company and partition. It holds totals, discounts, receipt, customer, shift, delivery, validation and gift card data, plus call centre fields.

Table name
RetailTransactionTableHistory
Module
Commerce transactions and orders
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
transactionIdx
Replacement key
transactionIdx
Key fields
Channel, store, terminal, transactionId, DataAreaId, Partition
Model
Foundation

Fields (135)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelReference to the channel record, stored as a record ID.Int64
RefRecId
NoNone
storeNumber of the store where the transaction took place.String
RetailStoreId
NoNone
terminalNumber of the register where the transaction took place.String
RetailTerminalId
NoNone
transactionIdTransaction number.String (44)
RetailTransactionId
YesNone
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
AllocationPriorityPriority of the order for allocation, on a scale from High 1 to Low 10.Enum
MCRSOAllocPriority (enum)
NoNone
amountToAccountAmount charged to the customer account.Real
RetailAmountToAccount
NoNone
ArchiveServiceJobIdGUID of the archive service job that handled this record.Guid
ArchiveServiceJobId
NoNone
BatchIDIdentifier of the shift the transaction belongs to.Int64
RetailPosBatchID
NoNone
BatchTerminalIdRegister ID of the shift the transaction belongs to.String
RetailTerminalId
NoNone
BeginDateTimeDate and time at which the transaction began.UtcDateTimeNoNone
businessDateBusiness date of the transaction.Date
RetailBusinessDate
NoNone
CatalogUpSellShownYes/No flag; the name suggests a catalogue up-sell was shown.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
ChannelReferenceIdReference code for the sales channel of the order.String (50)
RetailOrderChannelReferenceId
NoNone
commentFree-text comment on the transaction.String (60)
RetailCommentEx5
NoNone
ContactPersonIdID of the contact person for the transaction.String (20)
ContactPersonId
NoNone
ContinuityChildYes/No flag marking a continuity child order.Enum
MCRContinuityChildOrder
NoYes (enum)
NoNone
ContinuityLineEvalPayment choice for a continuity line: pay all now, pay all later, pay part now and part by schedule, or paid.Enum
MCRContinuityLineEval (enum)
NoNone
ContinuityOrderYes/No flag marking a continuity order.Enum
MCRContinuityOrder
NoYes (enum)
NoNone
costAmountTotal cost amount of the transaction; currency not stated in the metadata.Real
RetailCostAmount
NoNone
counterCounter value for the transaction.low confidenceInteger
RetailCounter
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CreatedOfflineYes/No flag showing whether the transaction was created while offline.Enum
NoYesId
NoYes (enum)
NoNone
createdOnPosTerminalRegister where the transaction was created.String
RetailTerminalId
NoNone
currencyCurrency code of the transaction.String (3)
CurrencyCode
NoNone
custAccountCustomer account linked to the transaction.String (38)
RetailAsyncCustAccount
NoNone
CustAccountAsyncCustomer account linked to the transaction.String (38)
RetailAsyncCustAccount
NoNone
custDiscAmountDiscount amount given to the customer; currency not stated in the metadata.Real
RetailCustDiscAmount
NoNone
CustomerNameName of the customer.String (160)
DirPartyName
NoNone
CustPurchaseOrderCustomer's purchase order or requisition reference.String (20)
CustPurchaseOrder
NoNone
DefaultDimensionSet of default financial dimension values for the transaction.Int64
LedgerDefaultDimensionValueSet
NoNone
DefaultDimensionStampedYes/No flag showing whether the financial dimension has already been stamped on the transaction.Enum
RetailTransactionDefaultDimensionStamped
NoYes (enum)
NoNone
DescriptionShort description of the transaction.String (150)
RetailTransactionTableDescription
NoNone
discAmountDiscount amount of the transaction; currency not stated in the metadata.Real
RetailDiscAmount
NoNone
discAmountWithoutTaxDiscount amount with tax left out; currency not stated in the metadata.Real
DiscAmountWithoutTax
NoNone
DlvModeMode of delivery for the transaction.String
CustDlvModeId
NoNone
EditAuditDateTimeDate and time at which the transaction was last edited.UtcDateTimeNoNone
entryStatusStatus of the transaction, such as voided, posted, concluded, cancelled, on hold or training.Enum
RetailTransEntryStatus
RetailEntryStatus (enum)
NoNone
exchRateExchange rate used for the transaction.Real
ExchRate
NoNone
ExpediteExpedite code for the order, used in the call centre.low confidenceString
MCRExpedite
NoNone
FiscalDocumentIdIdentifier of the fiscal document for the transaction.String (80)
RetailFiscalDocumentId
NoNone
FiscalSerialIdSerial identifier of the fiscal document.String (80)
RetailFiscalSerialId
NoNone
FTCExemptYes/No flag that exempts the order from automatic notification and cancellation.Enum
MCRFTCExempt
NoYes (enum)
NoNone
GiftCardActiveFromDate and time from which the gift card is active.UtcDateTime
RetailGiftCardActiveFrom
NoNone
GiftCardBalanceRemaining balance on the gift card (in accounting currency).Real
AmountMST
NoNone
GiftCardExpireDateDate on which the gift card expires.Date
RetailGiftCardExpireDate
NoNone
GiftCardHistoryDetailsFree-text history of gift card activity.String (-1)
RetailGiftCardHistoryDetails
NoNone
GiftCardIdMaskedGift card number with part of it hidden.String (30)
RetailGiftCardIdMasked
NoNone
GiftCardIssueAmountAmount the gift card was issued with (in accounting currency).Real
AmountMST
NoNone
grossAmountGross amount of the transaction; currency not stated in the metadata.Real
RetailGrossAmount
NoNone
includedInStatisticsYes/No flag showing whether the transaction is counted in statistics.Enum
RetailIncludedInStatistics
NoYes (enum)
NoNone
incomeExpenseAmountAmount of income or expense entered at the register.Real
RetailIncomeExpenseAmount
NoNone
infocodeDiscGroupReason code discount group applied to the transaction.low confidenceString
RetailInfocodeDiscGroup
NoNone
InstallmentBillingPromptYes/No flag showing whether the user was asked about installment billing.Enum
MCRPromptedForInstBillingOption
NoYes (enum)
NoNone
InstallmentOrderSubmittedYes/No flag; the name suggests an installment order was submitted.low confidenceEnum
NoYes (enum)
NoNone
InternalTransactionIdInternal GUID of the transaction, kept for logging only.Guid
RetailInternalTransactionId
NoNone
InventLocationIdWarehouse linked to the transaction.String
SalesInventLocationId
NoNone
InventSiteIdInventory site linked to the transaction.String
InventSiteId
NoNone
InvoiceCommentComment kept for the invoice.String (60)
RetailCommentEx5
NoNone
invoiceIdInvoice number linked to the transaction.String (50)
InvoiceId
NoNone
InvoiceRecIdReference to the invoice record, stored as a record ID.low confidenceInt64
RefRecId
NoNone
IsDepositOverriddenShows whether the deposit was overridden: unknown, no or yes.Enum
UnknownNoYes (enum)
NoNone
IsTaxExemptedForPriceInclusiveYes/No flag showing whether tax was exempted in a price-inclusive case.Enum
RetailIsTaxExemptedForPriceInclusive
NoYes (enum)
NoNone
IsTaxIncludedInPriceYes/No flag showing whether tax is included in the price.Enum
RetailIsTaxIncludedInPrice
NoYes (enum)
NoNone
itemsPostedYes/No flag showing whether the products on the transaction have been posted.Enum
RetailItemsPosted
NoYes (enum)
NoNone
LanguageIdLanguage code of the customer.String (7)
CustLanguageId
NoNone
LogisticsPostalAddressReference to the postal address record, stored as a record ID.Int64
LogisticsPostalAddressRecId
NoNone
loyaltyCardIdLoyalty card number used for the transaction.String (30)
RetailLoyaltyCardNumber
NoNone
LoyaltyDiscAmount_RUDiscount from loyalty points, used for Russia.Real
RetailLoyaltyDiscAmount_RU
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
netAmountNet amount without tax. With tax-inclusive pricing it excludes the included tax; with tax-exclusive pricing it is the amount before tax is added.Real
RetailNetAmount
NoNone
netPriceNet price of the transaction.Real
RetailNetPrice
NoNone
numberOfInvoicesNumber of invoices linked to the transaction.Integer
RetailNumberOfInvoices
NoNone
numberOfItemLinesNumber of product lines on the transaction.Real
RetailNumberOfItemLines
NoNone
numberOfItemsTotal quantity of products on the transaction.Real
RetailNumberOfItems
NoNone
numberOfPaymentLinesNumber of payment lines on the transaction.Integer
RetailNumberOfPaymentLines
NoNone
openDrawerYes/No flag for whether the cash drawer was opened.Enum
RetailOpenDrawer
NoYes (enum)
NoNone
OriginNumber of the location where the record originated.String (50)
RetailConnDistributionLocationId
NoNone
OutOfBalanceReleaseTypeHow an out-of-balance amount was dealt with: bill, write off, refund or verified.Enum
MCROutOfBalanceReleaseType (enum)
NoNone
paymentAmountTotal amount paid; currency not stated in the metadata.Real
RetailPaymentAmount
NoNone
PaymOutOfBalanceTypeShows whether the payment is out of balance: none, overpaid or underpaid.Enum
MCRPaymOutOfBalance (enum)
NoNone
postAsShipmentYes/No flag for posting the transaction as a shipment.Enum
RetailPostAsShipment
NoYes (enum)
NoNone
PriceOverrideYes/No flag; the label is empty, but the name suggests the price was overridden.low confidenceEnum
NoYes (enum)
NoNone
QuotationExpiryDateDate on which the quotation expires.Date
QuotationExpiryDate
NoNone
ReceiptDateRequestedDate on which the receipt was requested.Date
SalesReceiptDateRequested
NoNone
receiptEmailEmail address the receipt is sent to.String (80)
RetailReceiptEmail
NoNone
receiptEmailSentYes/No flag showing whether the receipt email was sent.Enum
RetailReceiptEmailSent
NoYes (enum)
NoNone
receiptIdReceipt number of the transaction.String (18)
RetailReceiptId
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
refundReceiptIdReceipt number of the refund.String (18)
RetailReceiptId
NoNone
replicatedYes/No flag showing whether the record has been replicated.Enum
RetailReplicated
NoYes (enum)
NoNone
replicationCounterFromOriginReplication counter value from the originating location.Integer
RetailReplicationCounter
NoNone
RetailTransactionAggregationFieldListReference to a record for transaction aggregation fields, stored as a record ID.low confidenceInt64
RefRecId
NoNone
retrievedFromReceiptIdReceipt number of the transaction this one was retrieved from.String (18)
RetailReceiptId
NoNone
roundedAmountRounding amount on the transaction.Real
RetailRoundedAmount
NoNone
saleIsReturnSaleYes/No flag marking the transaction as a return made against a receipt. Blind returns are not checked.Enum
RetailSaleIsReturnSale
NoYes (enum)
NoNone
SaleOnAccountYes/No flag marking an on-account sale.Enum
RetailTransactionSaleOnAccount
NoYes (enum)
NoNone
SalesGroupSales group linked to the transaction.String
CommissSalesGroup
NoNone
salesInvoiceAmountAmount invoiced for the sale; currency not stated in the metadata.Real
RetailSalesInvoiceAmount
NoNone
salesOrderAmountAmount of the sales order; currency not stated in the metadata.Real
RetailSalesOrderAmount
NoNone
salesOrderIdSales order number linked to the transaction.String (20)
SalesId
NoNone
salesPaymentDifferenceDifference between the sales amount and the payment amount.Real
RetailSalesPaymentDifference
NoNone
sellToContactIdLoyalty customer contact for the sale.String
RetailSellToContactId
NoNone
shiftShift identifier for the transaction.String
RetailShiftId
NoNone
shiftDateDate of the shift.Date
RetailShiftDate
NoNone
ShippingDateRequestedDate on which shipping was requested.Date
SalesShippingDateRequested
NoNone
SkipAggregationYes/No flag; the label is empty, but the name suggests the transaction is left out of aggregation.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
SourceIdSource code of the order, used in the call centre.String (20)
MCRSourceIdForm
NoNone
staffID of the operator who handled the transaction.String (25)
RetailStaffId
NoNone
statementCodeCode of the statement the transaction belongs to.String (25)
RetailStatementCode
NoNone
statementIdNumber of the statement the transaction belongs to.String (20)
RetailStatementId
NoNone
SuspendedTransactionIdNumber of the transaction that the original transaction was moved to when it was suspended.String (44)
RetailTransactionId
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
SysRowVersionNumberSystem row version number of the record.Int64
SysRowVersionNumber
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxCalculationTypeMethod used for tax calculation: regular or generic tax engine.Enum
TaxCalculationType (enum)
NoNone
timeWhenTotalPressedTime at which the total was requested at the register.Time
RetailTimeWhenTotalPressed
NoNone
timeWhenTransClosedTime at which the transaction was closed.Time
RetailTimeWhenTransClosed
NoNone
toAccountYes/No flag showing whether the sale is charged to an account.Enum
RetailToAccount
NoYes (enum)
NoNone
totalDiscAmountTotal discount amount of the transaction; currency not stated in the metadata.Real
RetailTotalDiscAmount
NoNone
TotalManualDiscountAmountTotal of discounts entered manually, as an amount.Real
RetailTotalManualDiscountAmount
NoNone
TotalManualDiscountPercentageTotal of discounts entered manually, as a percentage.Real
RetailTotalManualDiscountPercentage
NoNone
TransactionOrderTypeType of order: sales order or quote.Enum
RetailTransactionOrderType
RetailTransactionOrderTypes (enum)
NoNone
transCodeCode for a problem on the transaction, such as a blocked customer or a sales/payment difference.Enum
RetailTransCode
RetailTransactionCode (enum)
NoNone
transDateDate of the transaction.Date
TransDate
NoNone
transTableIdNumber identifying the source table of the transaction.low confidenceInteger
RetailTableId
NoNone
transTimeTime of the transaction.Time
RetailTransTime
NoNone
typeKind of transaction, such as logon, sales, payment, float entry or tender declaration.Enum
RetailTransactionType (enum)
NoNone
ValidationDateTimeDate and time of the last validation.UtcDateTimeNoNone
ValidationStatusValidation state of the transaction: none, pending, in progress, error or successful.Enum
RetailTransactionValidationStatus (enum)
NoNone
wrongShiftYes/No flag showing that the transaction is assigned to the wrong shift.Enum
RetailWrongShift
NoYes (enum)
NoNone

Indexes (1)

Get this data out

No public entity reads from RetailTransactionTableHistory. Its data is only reachable through the application, a custom entity or a database export.

Need help with RetailTransactionTableHistory in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk