Table
RetailTransactionSalesTransHistory
Archived sales transactions
Archived sales lines from retail transactions. Each record is one line, with item, quantity, price, discount, tax and return details. Lines are identified by store, register and transaction number plus a line number. The table has no defined key and no related tables in the metadata.
- Table name
RetailTransactionSalesTransHistory- 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 (162)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
barcodeBar code of the item on the line. | String (80)ItemBarCode | No | None | |
BlockItemReturnShows whether returns of this item are blocked in the point of sale. | EnumRetailBlockItemReturnNoYes (enum) | No | None | |
BlockQtyBlock quantity stored for the line. The metadata does not explain how it is used.low confidence | RealRetailBlockQty | No | None | |
businessDateBusiness date of the transaction. | DateRetailBusinessDate | No | None | |
CancelledTransactionIdNumber of the transaction that was cancelled. | String (44)RetailTransactionId | No | None | |
CatalogRecord ID of the catalog linked to the line. | Int64CatalogRefRecId | No | None | |
CategoryIdRecord ID of the product category linked to the line. | Int64EcoResCategoryId | No | None | |
ChannelRecord ID of the retail channel for the line. | Int64RefRecId | No | None | |
commentFree-text comment on the line. | String (60)RetailCommentEx5 | No | None | |
ContinuityScheduleIdID of the continuity schedule linked to the line. | String (20)MCRContinuityScheduleID | No | None | |
costAmountCost amount of the line. The currency is not stated in the metadata. | RealCostAmount | No | None | |
counterCounter value stored with the line. Purpose not clear from the metadata.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 | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
currencyCurrency code for the line. | String (3)CurrencyCode | No | None | |
custAccountCustomer account linked to the sale. | String (38)RetailAsyncCustAccount | No | None | |
CustAccountAsyncCustomer account linked to the sale. | String (38)RetailAsyncCustAccount | No | None | |
custDiscAmountDiscount amount given to the customer on the line. | RealRetailCustDiscAmount | No | None | |
custInvoiceDiscAmountCustomer discount amount linked to the invoice. The label matches the other customer discount field.low confidence | RealRetailCustDiscAmount | No | None | |
CustInvoiceTransRecIdRecord ID of the customer invoice line linked to this line. | Int64MCRCustInvoiceTransRefRecId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionRecord ID of the set of financial dimension values for the line. | Int64LedgerDefaultDimensionValueSet | No | None | |
discAmountDiscount amount on the line. | RealRetailDiscAmount | No | None | |
discAmountFromStdPriceDiscount amount taken from the standard price. Its label calls it a cash discount.low confidence | RealDiscAmount | No | None | |
discAmountWithoutTaxDiscount amount on the line, excluding tax. | RealDiscAmountWithoutTax | No | None | |
discGroupIdPrice group used for the line. | StringPriceGroupId | No | None | |
discOfferIdNumber of the discount offer applied to the line. | String (40)RetailDiscountOfferId | No | None | |
DiscountAmountForPrintingDiscount amount shown when the line is printed. | RealDiscAmount | No | None | |
DlvModeMode of delivery for the line. | StringCustDlvModeId | No | None | |
ElectronicDeliveryEmailEmail address for electronic delivery. | String (80)Email | No | None | |
ElectronicDeliveryEmailContentText content for the electronic delivery email. | String (400)RetailShipAddressEmailContent | No | None | |
Exempt_INShows whether the line is tax exempt. Used for India. | EnumTaxExemptTaxNoYes (enum) | No | None | |
ExpediteExpedite value linked to the line, used with call centre sales.low confidence | StringMCRExpedite | No | None | |
FulfillmentStoreIdStore that will fulfil the sale. | StringRetailFulfillmentStoreId | No | None | |
giftcardShows whether the line is a gift card. | EnumRetailGiftcardNoYes (enum) | No | None | |
GiftCardBalanceBalance of the gift card. | RealRetailGiftCardBalance | No | None | |
GiftCardNumberNumber of the gift card on the line. | String (30)RetailGiftCardId | No | None | |
GiftCardOperationGift card action on the line. Values are None, Issue, Add to and Cash out. | EnumRetailGiftCardSalesLineOperation (enum) | No | None | |
GiftCardTypeType of gift card. Values are Unknown, Internal gift card and External gift card. | EnumRetailGiftCardType (enum) | No | None | |
HSNCode_INHarmonised system (HSN) code for the item. Used for India. | StringHSNCode_IN | No | None | |
infocodeDiscAmountDiscount amount that comes from a reason code. | RealRetailInfocodeDiscAmount | No | None | |
InstallmentEligibleShows whether the line can be paid by instalments. | EnumMCRInstallmentEligibleNoYes (enum) | No | None | |
InventBatchIdBatch number of the inventory on the line. | String (20)InventBatchId | No | None | |
inventDimIdInventory dimension number for the line. | String (20)InventDimId | No | None | |
InventLocationIdWarehouse linked to the line. | StringSalesInventLocationId | No | None | |
InventSerialIdSerial number of the inventory on the line. | String (20)InventSerialId | No | None | |
InventSiteIdInventory site linked to the line. | StringInventSiteId | No | None | |
InventStatusInventory status code of the stock. | StringWHSInventStatusId | No | None | |
inventStatusSalesInventory status of the sale line. Values are None, Reserved and Posted. | EnumRetailInventStatusSales (enum) | No | None | |
inventTransIdLot ID that links the line to inventory transactions. | String (20)InventTransId | No | None | |
IsTaxExemptByTaxOverrideShows whether the line is tax exempt because of a tax override code. | EnumIsTaxExemptByTaxOverrideNoYes (enum) | No | None | |
itemCorrectedLineShows whether the line was a product correction. | EnumRetailItemCorrectedLineNoYes (enum) | No | None | |
itemIdItem number sold on the line. | String (20)ItemId | No | None | |
itemIdScannedShows whether the item was scanned. | EnumRetailItemIdScannedNoYes (enum) | No | None | |
itemPostingGroupItem relation value linked to the item.low confidence | String (20)InventItemRelation | No | None | |
keyboardItemEntryShows whether the item was typed in by keyboard. | EnumRetailKeyboardItemEntryNoYes (enum) | No | None | |
LicensePlateLicense plate ID of the warehouse unit. | String (25)WHSLicensePlateId | No | None | |
lineDscAmountLine discount amount. | RealDiscAmount | No | None | |
LineManualDiscountAmountManual discount amount on the line. Its label calls it a cash discount.low confidence | RealDiscAmount | No | None | |
LineManualDiscountPercentageManual discount percentage on the line. | RealDiscPct | No | None | |
lineNumLine number within the transaction. | RealLineNum | Yes | None | |
LinePercentageDiscountDiscount percentage on the line. | RealDiscPct | No | None | |
LineTypeKind of line. Values are Catalog free gift, Regular and Continuity parent. | EnumMCRLineType (enum) | No | None | |
lineWasDiscountedShows whether the line received a discount. | EnumRetailLineWasDiscountedNoYes (enum) | No | None | |
linkedItemNotOriginalShows whether the line is a linked item that is not the original. | EnumRetailLinkedItemNotOriginalNoYes (enum) | No | None | |
ListingIdChannel listing ID of the product. | String (50)RetailChannelListingId | No | None | |
LogisticsPostalAddressRecord ID of the postal address linked to the line. | Int64RefRecId | No | None | |
LoyaltyDiscAmount_RUDiscount amount paid with loyalty points. Used for Russia. | RealRetailLoyaltyDiscAmount_RU | No | None | |
LoyaltyDiscPct_RUDiscount percentage paid with loyalty points. Used for Russia. | RealRetailLoyaltyDiscPct_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 | |
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field. | Int64ModifiedTransactionId | No | None | |
netAmountNet amount of the line, excluding tax. | RealRetailNetAmount | No | None | |
netAmountInclTaxNet amount of the line including tax. The label calls it the amount before tax.low confidence | RealRetailNetAmountInclTax | No | None | |
netPriceNet price of the item on the line. | RealRetailNetPrice | No | None | |
NonGST_INShows whether the line is outside GST. Used for India. | EnumNonGST_INNoYes (enum) | No | None | |
OriginLocation number that identifies where the record came from. | String (50)RetailConnDistributionLocationId | No | None | |
originalOfLinkedItemListShows whether the item is the original of a linked product list. | EnumRetailOriginalOfLinkedItemListNoYes (enum) | No | None | |
originalPriceOriginal price of the item. | RealPrice | No | None | |
OriginalTaxGroupSales tax group before any change. | StringTaxGroup | No | None | |
OriginalTaxItemGroupItem sales tax group before any change. | StringTaxItemGroup | No | None | |
ParentInventTransIdLot ID of the parent inventory transaction. | String (20)InventTransId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
periodicDiscAmountAmount of periodic discount on the line. | RealDiscAmount | No | None | |
periodicDiscGroupPeriodic discount group applied to the line. | StringRetailPeriodicDiscGroup | No | None | |
periodicDiscTypeType of periodic discount. Values are None, Quantity discount, Mix and match and Discount. | EnumRetailPeriodicDiscType (enum) | No | None | |
PeriodicPercentageDiscountPercentage of periodic discount on the line. | RealDiscPct | No | None | |
PickupEndTimeEnd time of the pickup time slot. | TimeRetailPickupTimeslotEndTime | No | None | |
PickupStartTimeStart time of the pickup time slot. | TimeRetailPickupTimeslotStartTime | No | None | |
PostingCalculatedWMSLocationIdWarehouse location linked to the line. The metadata gives no more detail.low confidence | StringWMSLocationId | No | None | |
prescriptionIdPrescription ID linked to the line. | StringRetailPrescriptionId | No | None | |
pricePrice of the item on the line. | RealPrice | No | None | |
priceChangeShows whether the price was changed. | EnumRetailPriceChangeNoYes (enum) | No | None | |
priceInBarcodeShows whether the price is held in the bar code. | EnumRetailPriceInBarcodeNoYes (enum) | No | None | |
pumpIdPump ID linked to the line, as a whole number. | IntegerInteger | No | None | |
purchIdPurchase order number linked to the line. | String (20)PurchId | No | None | |
qtyQuantity sold on the line. | RealQty | No | None | |
ReceiptDateRequestedDate the customer asked to receive the goods. | DateSalesReceiptDateRequested | 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 | |
replicatedShows whether the record was replicated. | EnumRetailReplicatedNoYes (enum) | No | None | |
replicationCounterFromOriginReplication counter taken from the origin location. | IntegerRetailReplicationCounter | No | None | |
ReturnInventDimIdInventory dimension number used for the return. | String (20)InventDimId | No | None | |
returnLineNumLine number of the original line being returned. | RealLineNum | No | None | |
returnNoSaleShows whether the line is a return with no sale. | EnumRetailReturnNoSaleNoYes (enum) | No | None | |
returnQtyQuantity returned on the line. | RealQty | No | None | |
returnStoreStore of the original transaction for a return. | StringRetailStoreId | No | None | |
returnTerminalIdRegister of the original transaction for a return. | StringRetailTerminalId | No | None | |
ReturnTrackingStatusShows whether a return line has been processed for returned quantities. Values are None, PendingProcessing and Processed. | EnumRetailReturnTrackingStatusRetailReturnTrackingStatusType (enum) | No | None | |
returnTransactionIdNumber of the original transaction for a return. | String (44)RetailTransactionId | No | None | |
RFIDTagIdRFID tag ID of the item. | String (24)RFIDTagId | No | None | |
SalesGroupSales group linked to the line. | StringCommissSalesGroup | No | None | |
SalesMarkupSales charges amount on the line. | RealSalesMarkup | No | None | |
scaleItemShows whether the item is a scale product. | EnumRetailScaleItemNoYes (enum) | No | None | |
sectionSection number where the item is held. | StringRetailSectionId | No | None | |
ServiceAccountingCode_INService accounting code. Used for India. | StringServiceAccountingCode_IN | No | None | |
shelfShelf number where the item is held. | StringRetailShelfId | No | None | |
shiftShift identifier of the transaction. | StringRetailShiftId | No | None | |
shiftDateDate of the shift. | DateRetailShiftDate | No | None | |
ShippingDateRequestedDate the customer asked for shipment. | DateSalesShippingDateRequested | No | None | |
SkipSalesLine_RUYes/no flag used for Russia. Purpose not clear from the metadata.low confidence | EnumNoYes (enum) | No | None | |
SourceIdSource code for the sale, used with call centre sales. | String (20)MCRSourceID | No | None | |
staffSales staff member linked to the line. | String (25)RetailStaffId | No | None | |
staffIdSales staff member linked to the line. | String (25)RetailStaffId | No | None | |
statementCodeStatement code linked to the transaction. | String (25)RetailStatementCode | No | None | |
statementIdStatement number linked to the transaction. | String (20)RetailStatementId | No | None | |
stdNetPriceStandard net price of the item. | RealRetailNetPrice | No | None | |
storeStore where the sale was made. | StringRetailStoreId | 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 | |
taxAmountSales tax amount of the line. | RealTaxAmount | No | None | |
TaxExemptPriceInclusiveOriginalPriceLine price before tax-inclusive pricing was exempted. | RealRetailTaxExemptOriginalPrice | No | None | |
TaxExemptPriceInclusiveReductionAmountTax amount removed when tax-inclusive pricing is exempted. | RealRetailTaxExemptReductionAmount | No | None | |
taxGroupSales tax group applied to the line. | StringTaxGroup | No | None | |
TaxItemGroupItem sales tax group applied to the line. | StringTaxItemGroup | No | None | |
TaxOverrideCodeSales tax override code used on the line. | String (50)TaxOverrideCode | No | None | |
TaxRatePercentTax rate on the line, as a percentage. | RealRetailTaxRatePercent | No | None | |
TaxRateTypeName of the tax rate type on the line. | String (60)TaxRateTypeName | No | None | |
TenderDiscountAmountDiscount amount linked to the tender type. | RealDiscAmount | No | None | |
TenderDiscountPercentageDiscount percentage linked to the tender type. | RealDiscPct | No | None | |
terminalIdRegister (POS terminal) where the sale was made. | StringRetailTerminalId | No | None | |
totalDiscAmountTotal discount amount on the line. | RealDiscAmount | No | None | |
totalDiscInfoCodeLineNumLine number linked to the total discount reason code.low confidence | RealLineNum | No | None | |
totalDiscPctTotal discount percentage on the line. | RealDiscPct | No | None | |
totalRoundedAmountAmount of rounding on the line. | RealRetailRoundedAmount | No | None | |
transactionCodeHow the item was found at sale. Values are Product on file, Product/Barcode not on file and Product blocked. | EnumRetailItemTransactionCode (enum) | No | None | |
transactionIdNumber of the retail transaction that the line belongs to. | String (44)RetailTransactionId | Yes | None | |
transactionStatusStatus of the transaction entry, such as Voided, Posted, Concluded, Cancelled or On Hold. | EnumRetailTransEntryStatusRetailEntryStatus (enum) | No | None | |
transDateTransaction date. | DateTransDate | No | None | |
transTimeTime of the transaction. | TimeRetailTransTime | No | None | |
unitUnit of measure of the item. | StringUnitOfMeasureSymbol | No | None | |
unitPricePrice per unit. | RealPrice | No | None | |
unitQtyQuantity in units. | RealUnitQty | No | None | |
UpSellOriginWhere the line came from. Values are None, Item cross-sell, Item up-sell and Catalog. | EnumMCRUpSellOrigin (enum) | No | None | |
UpSellOriginOfferIdItem or catalog ID of the offer that led to the line. | String (20)MCRItemIdOfferId | No | None | |
variantIdProduct variant number. | StringRetailVariantId | No | None | |
WarehouseLocationWarehouse location linked to the line. | StringWMSLocationId | No | None | |
weightItemShows whether the item is sold by weight. | EnumRetailWeightItemNoYes (enum) | No | None | |
weightManuallyEnteredShows whether the weight was typed in by hand. | EnumRetailWeightManuallyEnteredNoYes (enum) | No | None |
Indexes (2)
transactionLineIdxChannel,store,terminalId,transactionId,lineNum,DataAreaId,PartitionUnique, alternate key.
transactionIdxChannel,store,terminalId,transactionId,DataAreaId,PartitionNot unique.
Get this data out
No public entity reads from RetailTransactionSalesTransHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailTransactionSalesTransHistory in a report, an integration or a migration? Talk to Dr Dynamics.