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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelReference to the channel record, stored as a record ID. | Int64RefRecId | No | None | |
storeNumber of the store where the transaction took place. | StringRetailStoreId | No | None | |
terminalNumber of the register where the transaction took place. | StringRetailTerminalId | No | None | |
transactionIdTransaction number. | String (44)RetailTransactionId | Yes | 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 | |
AllocationPriorityPriority of the order for allocation, on a scale from High 1 to Low 10. | EnumMCRSOAllocPriority (enum) | No | None | |
amountToAccountAmount charged to the customer account. | RealRetailAmountToAccount | No | None | |
ArchiveServiceJobIdGUID of the archive service job that handled this record. | GuidArchiveServiceJobId | No | None | |
BatchIDIdentifier of the shift the transaction belongs to. | Int64RetailPosBatchID | No | None | |
BatchTerminalIdRegister ID of the shift the transaction belongs to. | StringRetailTerminalId | No | None | |
BeginDateTimeDate and time at which the transaction began. | UtcDateTime | No | None | |
businessDateBusiness date of the transaction. | DateRetailBusinessDate | No | None | |
CatalogUpSellShownYes/No flag; the name suggests a catalogue up-sell was shown.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
ChannelReferenceIdReference code for the sales channel of the order. | String (50)RetailOrderChannelReferenceId | No | None | |
commentFree-text comment on the transaction. | String (60)RetailCommentEx5 | No | None | |
ContactPersonIdID of the contact person for the transaction. | String (20)ContactPersonId | No | None | |
ContinuityChildYes/No flag marking a continuity child order. | EnumMCRContinuityChildOrderNoYes (enum) | No | None | |
ContinuityLineEvalPayment choice for a continuity line: pay all now, pay all later, pay part now and part by schedule, or paid. | EnumMCRContinuityLineEval (enum) | No | None | |
ContinuityOrderYes/No flag marking a continuity order. | EnumMCRContinuityOrderNoYes (enum) | No | None | |
costAmountTotal cost amount of the transaction; currency not stated in the metadata. | RealRetailCostAmount | No | None | |
counterCounter value for the transaction.low confidence | IntegerRetailCounter | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreatedOfflineYes/No flag showing whether the transaction was created while offline. | EnumNoYesIdNoYes (enum) | No | None | |
createdOnPosTerminalRegister where the transaction was created. | StringRetailTerminalId | No | None | |
currencyCurrency code of the transaction. | String (3)CurrencyCode | No | None | |
custAccountCustomer account linked to the transaction. | String (38)RetailAsyncCustAccount | No | None | |
CustAccountAsyncCustomer account linked to the transaction. | String (38)RetailAsyncCustAccount | No | None | |
custDiscAmountDiscount amount given to the customer; currency not stated in the metadata. | RealRetailCustDiscAmount | No | None | |
CustomerNameName of the customer. | String (160)DirPartyName | No | None | |
CustPurchaseOrderCustomer's purchase order or requisition reference. | String (20)CustPurchaseOrder | No | None | |
DefaultDimensionSet of default financial dimension values for the transaction. | Int64LedgerDefaultDimensionValueSet | No | None | |
DefaultDimensionStampedYes/No flag showing whether the financial dimension has already been stamped on the transaction. | EnumRetailTransactionDefaultDimensionStampedNoYes (enum) | No | None | |
DescriptionShort description of the transaction. | String (150)RetailTransactionTableDescription | No | None | |
discAmountDiscount amount of the transaction; currency not stated in the metadata. | RealRetailDiscAmount | No | None | |
discAmountWithoutTaxDiscount amount with tax left out; currency not stated in the metadata. | RealDiscAmountWithoutTax | No | None | |
DlvModeMode of delivery for the transaction. | StringCustDlvModeId | No | None | |
EditAuditDateTimeDate and time at which the transaction was last edited. | UtcDateTime | No | None | |
entryStatusStatus of the transaction, such as voided, posted, concluded, cancelled, on hold or training. | EnumRetailTransEntryStatusRetailEntryStatus (enum) | No | None | |
exchRateExchange rate used for the transaction. | RealExchRate | No | None | |
ExpediteExpedite code for the order, used in the call centre.low confidence | StringMCRExpedite | No | None | |
FiscalDocumentIdIdentifier of the fiscal document for the transaction. | String (80)RetailFiscalDocumentId | No | None | |
FiscalSerialIdSerial identifier of the fiscal document. | String (80)RetailFiscalSerialId | No | None | |
FTCExemptYes/No flag that exempts the order from automatic notification and cancellation. | EnumMCRFTCExemptNoYes (enum) | No | None | |
GiftCardActiveFromDate and time from which the gift card is active. | UtcDateTimeRetailGiftCardActiveFrom | No | None | |
GiftCardBalanceRemaining balance on the gift card (in accounting currency). | RealAmountMST | No | None | |
GiftCardExpireDateDate on which the gift card expires. | DateRetailGiftCardExpireDate | No | None | |
GiftCardHistoryDetailsFree-text history of gift card activity. | String (-1)RetailGiftCardHistoryDetails | No | None | |
GiftCardIdMaskedGift card number with part of it hidden. | String (30)RetailGiftCardIdMasked | No | None | |
GiftCardIssueAmountAmount the gift card was issued with (in accounting currency). | RealAmountMST | No | None | |
grossAmountGross amount of the transaction; currency not stated in the metadata. | RealRetailGrossAmount | No | None | |
includedInStatisticsYes/No flag showing whether the transaction is counted in statistics. | EnumRetailIncludedInStatisticsNoYes (enum) | No | None | |
incomeExpenseAmountAmount of income or expense entered at the register. | RealRetailIncomeExpenseAmount | No | None | |
infocodeDiscGroupReason code discount group applied to the transaction.low confidence | StringRetailInfocodeDiscGroup | No | None | |
InstallmentBillingPromptYes/No flag showing whether the user was asked about installment billing. | EnumMCRPromptedForInstBillingOptionNoYes (enum) | No | None | |
InstallmentOrderSubmittedYes/No flag; the name suggests an installment order was submitted.low confidence | EnumNoYes (enum) | No | None | |
InternalTransactionIdInternal GUID of the transaction, kept for logging only. | GuidRetailInternalTransactionId | No | None | |
InventLocationIdWarehouse linked to the transaction. | StringSalesInventLocationId | No | None | |
InventSiteIdInventory site linked to the transaction. | StringInventSiteId | No | None | |
InvoiceCommentComment kept for the invoice. | String (60)RetailCommentEx5 | No | None | |
invoiceIdInvoice number linked to the transaction. | String (50)InvoiceId | No | None | |
InvoiceRecIdReference to the invoice record, stored as a record ID.low confidence | Int64RefRecId | No | None | |
IsDepositOverriddenShows whether the deposit was overridden: unknown, no or yes. | EnumUnknownNoYes (enum) | No | None | |
IsTaxExemptedForPriceInclusiveYes/No flag showing whether tax was exempted in a price-inclusive case. | EnumRetailIsTaxExemptedForPriceInclusiveNoYes (enum) | No | None | |
IsTaxIncludedInPriceYes/No flag showing whether tax is included in the price. | EnumRetailIsTaxIncludedInPriceNoYes (enum) | No | None | |
itemsPostedYes/No flag showing whether the products on the transaction have been posted. | EnumRetailItemsPostedNoYes (enum) | No | None | |
LanguageIdLanguage code of the customer. | String (7)CustLanguageId | No | None | |
LogisticsPostalAddressReference to the postal address record, stored as a record ID. | Int64LogisticsPostalAddressRecId | No | None | |
loyaltyCardIdLoyalty card number used for the transaction. | String (30)RetailLoyaltyCardNumber | No | None | |
LoyaltyDiscAmount_RUDiscount from loyalty points, used for Russia. | RealRetailLoyaltyDiscAmount_RU | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
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. | RealRetailNetAmount | No | None | |
netPriceNet price of the transaction. | RealRetailNetPrice | No | None | |
numberOfInvoicesNumber of invoices linked to the transaction. | IntegerRetailNumberOfInvoices | No | None | |
numberOfItemLinesNumber of product lines on the transaction. | RealRetailNumberOfItemLines | No | None | |
numberOfItemsTotal quantity of products on the transaction. | RealRetailNumberOfItems | No | None | |
numberOfPaymentLinesNumber of payment lines on the transaction. | IntegerRetailNumberOfPaymentLines | No | None | |
openDrawerYes/No flag for whether the cash drawer was opened. | EnumRetailOpenDrawerNoYes (enum) | No | None | |
OriginNumber of the location where the record originated. | String (50)RetailConnDistributionLocationId | No | None | |
OutOfBalanceReleaseTypeHow an out-of-balance amount was dealt with: bill, write off, refund or verified. | EnumMCROutOfBalanceReleaseType (enum) | No | None | |
paymentAmountTotal amount paid; currency not stated in the metadata. | RealRetailPaymentAmount | No | None | |
PaymOutOfBalanceTypeShows whether the payment is out of balance: none, overpaid or underpaid. | EnumMCRPaymOutOfBalance (enum) | No | None | |
postAsShipmentYes/No flag for posting the transaction as a shipment. | EnumRetailPostAsShipmentNoYes (enum) | No | None | |
PriceOverrideYes/No flag; the label is empty, but the name suggests the price was overridden.low confidence | EnumNoYes (enum) | No | None | |
QuotationExpiryDateDate on which the quotation expires. | DateQuotationExpiryDate | No | None | |
ReceiptDateRequestedDate on which the receipt was requested. | DateSalesReceiptDateRequested | No | None | |
receiptEmailEmail address the receipt is sent to. | String (80)RetailReceiptEmail | No | None | |
receiptEmailSentYes/No flag showing whether the receipt email was sent. | EnumRetailReceiptEmailSentNoYes (enum) | No | None | |
receiptIdReceipt number of the transaction. | String (18)RetailReceiptId | 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 | |
refundReceiptIdReceipt number of the refund. | String (18)RetailReceiptId | No | None | |
replicatedYes/No flag showing whether the record has been replicated. | EnumRetailReplicatedNoYes (enum) | No | None | |
replicationCounterFromOriginReplication counter value from the originating location. | IntegerRetailReplicationCounter | No | None | |
RetailTransactionAggregationFieldListReference to a record for transaction aggregation fields, stored as a record ID.low confidence | Int64RefRecId | No | None | |
retrievedFromReceiptIdReceipt number of the transaction this one was retrieved from. | String (18)RetailReceiptId | No | None | |
roundedAmountRounding amount on the transaction. | RealRetailRoundedAmount | No | None | |
saleIsReturnSaleYes/No flag marking the transaction as a return made against a receipt. Blind returns are not checked. | EnumRetailSaleIsReturnSaleNoYes (enum) | No | None | |
SaleOnAccountYes/No flag marking an on-account sale. | EnumRetailTransactionSaleOnAccountNoYes (enum) | No | None | |
SalesGroupSales group linked to the transaction. | StringCommissSalesGroup | No | None | |
salesInvoiceAmountAmount invoiced for the sale; currency not stated in the metadata. | RealRetailSalesInvoiceAmount | No | None | |
salesOrderAmountAmount of the sales order; currency not stated in the metadata. | RealRetailSalesOrderAmount | No | None | |
salesOrderIdSales order number linked to the transaction. | String (20)SalesId | No | None | |
salesPaymentDifferenceDifference between the sales amount and the payment amount. | RealRetailSalesPaymentDifference | No | None | |
sellToContactIdLoyalty customer contact for the sale. | StringRetailSellToContactId | No | None | |
shiftShift identifier for the transaction. | StringRetailShiftId | No | None | |
shiftDateDate of the shift. | DateRetailShiftDate | No | None | |
ShippingDateRequestedDate on which shipping was requested. | DateSalesShippingDateRequested | No | None | |
SkipAggregationYes/No flag; the label is empty, but the name suggests the transaction is left out of aggregation.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
SourceIdSource code of the order, used in the call centre. | String (20)MCRSourceIdForm | No | None | |
staffID of the operator who handled the transaction. | String (25)RetailStaffId | No | None | |
statementCodeCode of the statement the transaction belongs to. | String (25)RetailStatementCode | No | None | |
statementIdNumber of the statement the transaction belongs to. | String (20)RetailStatementId | No | None | |
SuspendedTransactionIdNumber of the transaction that the original transaction was moved to when it was suspended. | String (44)RetailTransactionId | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
SysRowVersionNumberSystem row version number of the record. | Int64SysRowVersionNumber | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxCalculationTypeMethod used for tax calculation: regular or generic tax engine. | EnumTaxCalculationType (enum) | No | None | |
timeWhenTotalPressedTime at which the total was requested at the register. | TimeRetailTimeWhenTotalPressed | No | None | |
timeWhenTransClosedTime at which the transaction was closed. | TimeRetailTimeWhenTransClosed | No | None | |
toAccountYes/No flag showing whether the sale is charged to an account. | EnumRetailToAccountNoYes (enum) | No | None | |
totalDiscAmountTotal discount amount of the transaction; currency not stated in the metadata. | RealRetailTotalDiscAmount | No | None | |
TotalManualDiscountAmountTotal of discounts entered manually, as an amount. | RealRetailTotalManualDiscountAmount | No | None | |
TotalManualDiscountPercentageTotal of discounts entered manually, as a percentage. | RealRetailTotalManualDiscountPercentage | No | None | |
TransactionOrderTypeType of order: sales order or quote. | EnumRetailTransactionOrderTypeRetailTransactionOrderTypes (enum) | No | None | |
transCodeCode for a problem on the transaction, such as a blocked customer or a sales/payment difference. | EnumRetailTransCodeRetailTransactionCode (enum) | No | None | |
transDateDate of the transaction. | DateTransDate | No | None | |
transTableIdNumber identifying the source table of the transaction.low confidence | IntegerRetailTableId | No | None | |
transTimeTime of the transaction. | TimeRetailTransTime | No | None | |
typeKind of transaction, such as logon, sales, payment, float entry or tender declaration. | EnumRetailTransactionType (enum) | No | None | |
ValidationDateTimeDate and time of the last validation. | UtcDateTime | No | None | |
ValidationStatusValidation state of the transaction: none, pending, in progress, error or successful. | EnumRetailTransactionValidationStatus (enum) | No | None | |
wrongShiftYes/No flag showing that the transaction is assigned to the wrong shift. | EnumRetailWrongShiftNoYes (enum) | No | None |
Indexes (1)
transactionIdxPrimary indexReplacement keyChannel,store,terminal,transactionId,DataAreaId,PartitionUnique, alternate key.
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.