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 descriptionType / EDT / enumMandatoryReferencesIn public entities
barcodeBar code of the item on the line.String (80)
ItemBarCode
NoNone
BlockItemReturnShows whether returns of this item are blocked in the point of sale.Enum
RetailBlockItemReturn
NoYes (enum)
NoNone
BlockQtyBlock quantity stored for the line. The metadata does not explain how it is used.low confidenceReal
RetailBlockQty
NoNone
businessDateBusiness date of the transaction.Date
RetailBusinessDate
NoNone
CancelledTransactionIdNumber of the transaction that was cancelled.String (44)
RetailTransactionId
NoNone
CatalogRecord ID of the catalog linked to the line.Int64
CatalogRefRecId
NoNone
CategoryIdRecord ID of the product category linked to the line.Int64
EcoResCategoryId
NoNone
ChannelRecord ID of the retail channel for the line.Int64
RefRecId
NoNone
commentFree-text comment on the line.String (60)
RetailCommentEx5
NoNone
ContinuityScheduleIdID of the continuity schedule linked to the line.String (20)
MCRContinuityScheduleID
NoNone
costAmountCost amount of the line. The currency is not stated in the metadata.Real
CostAmount
NoNone
counterCounter value stored with the line. Purpose not clear from the metadata.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
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
currencyCurrency code for the line.String (3)
CurrencyCode
NoNone
custAccountCustomer account linked to the sale.String (38)
RetailAsyncCustAccount
NoNone
CustAccountAsyncCustomer account linked to the sale.String (38)
RetailAsyncCustAccount
NoNone
custDiscAmountDiscount amount given to the customer on the line.Real
RetailCustDiscAmount
NoNone
custInvoiceDiscAmountCustomer discount amount linked to the invoice. The label matches the other customer discount field.low confidenceReal
RetailCustDiscAmount
NoNone
CustInvoiceTransRecIdRecord ID of the customer invoice line linked to this line.Int64
MCRCustInvoiceTransRefRecId
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionRecord ID of the set of financial dimension values for the line.Int64
LedgerDefaultDimensionValueSet
NoNone
discAmountDiscount amount on the line.Real
RetailDiscAmount
NoNone
discAmountFromStdPriceDiscount amount taken from the standard price. Its label calls it a cash discount.low confidenceReal
DiscAmount
NoNone
discAmountWithoutTaxDiscount amount on the line, excluding tax.Real
DiscAmountWithoutTax
NoNone
discGroupIdPrice group used for the line.String
PriceGroupId
NoNone
discOfferIdNumber of the discount offer applied to the line.String (40)
RetailDiscountOfferId
NoNone
DiscountAmountForPrintingDiscount amount shown when the line is printed.Real
DiscAmount
NoNone
DlvModeMode of delivery for the line.String
CustDlvModeId
NoNone
ElectronicDeliveryEmailEmail address for electronic delivery.String (80)
Email
NoNone
ElectronicDeliveryEmailContentText content for the electronic delivery email.String (400)
RetailShipAddressEmailContent
NoNone
Exempt_INShows whether the line is tax exempt. Used for India.Enum
TaxExemptTax
NoYes (enum)
NoNone
ExpediteExpedite value linked to the line, used with call centre sales.low confidenceString
MCRExpedite
NoNone
FulfillmentStoreIdStore that will fulfil the sale.String
RetailFulfillmentStoreId
NoNone
giftcardShows whether the line is a gift card.Enum
RetailGiftcard
NoYes (enum)
NoNone
GiftCardBalanceBalance of the gift card.Real
RetailGiftCardBalance
NoNone
GiftCardNumberNumber of the gift card on the line.String (30)
RetailGiftCardId
NoNone
GiftCardOperationGift card action on the line. Values are None, Issue, Add to and Cash out.Enum
RetailGiftCardSalesLineOperation (enum)
NoNone
GiftCardTypeType of gift card. Values are Unknown, Internal gift card and External gift card.Enum
RetailGiftCardType (enum)
NoNone
HSNCode_INHarmonised system (HSN) code for the item. Used for India.String
HSNCode_IN
NoNone
infocodeDiscAmountDiscount amount that comes from a reason code.Real
RetailInfocodeDiscAmount
NoNone
InstallmentEligibleShows whether the line can be paid by instalments.Enum
MCRInstallmentEligible
NoYes (enum)
NoNone
InventBatchIdBatch number of the inventory on the line.String (20)
InventBatchId
NoNone
inventDimIdInventory dimension number for the line.String (20)
InventDimId
NoNone
InventLocationIdWarehouse linked to the line.String
SalesInventLocationId
NoNone
InventSerialIdSerial number of the inventory on the line.String (20)
InventSerialId
NoNone
InventSiteIdInventory site linked to the line.String
InventSiteId
NoNone
InventStatusInventory status code of the stock.String
WHSInventStatusId
NoNone
inventStatusSalesInventory status of the sale line. Values are None, Reserved and Posted.Enum
RetailInventStatusSales (enum)
NoNone
inventTransIdLot ID that links the line to inventory transactions.String (20)
InventTransId
NoNone
IsTaxExemptByTaxOverrideShows whether the line is tax exempt because of a tax override code.Enum
IsTaxExemptByTaxOverride
NoYes (enum)
NoNone
itemCorrectedLineShows whether the line was a product correction.Enum
RetailItemCorrectedLine
NoYes (enum)
NoNone
itemIdItem number sold on the line.String (20)
ItemId
NoNone
itemIdScannedShows whether the item was scanned.Enum
RetailItemIdScanned
NoYes (enum)
NoNone
itemPostingGroupItem relation value linked to the item.low confidenceString (20)
InventItemRelation
NoNone
keyboardItemEntryShows whether the item was typed in by keyboard.Enum
RetailKeyboardItemEntry
NoYes (enum)
NoNone
LicensePlateLicense plate ID of the warehouse unit.String (25)
WHSLicensePlateId
NoNone
lineDscAmountLine discount amount.Real
DiscAmount
NoNone
LineManualDiscountAmountManual discount amount on the line. Its label calls it a cash discount.low confidenceReal
DiscAmount
NoNone
LineManualDiscountPercentageManual discount percentage on the line.Real
DiscPct
NoNone
lineNumLine number within the transaction.Real
LineNum
YesNone
LinePercentageDiscountDiscount percentage on the line.Real
DiscPct
NoNone
LineTypeKind of line. Values are Catalog free gift, Regular and Continuity parent.Enum
MCRLineType (enum)
NoNone
lineWasDiscountedShows whether the line received a discount.Enum
RetailLineWasDiscounted
NoYes (enum)
NoNone
linkedItemNotOriginalShows whether the line is a linked item that is not the original.Enum
RetailLinkedItemNotOriginal
NoYes (enum)
NoNone
ListingIdChannel listing ID of the product.String (50)
RetailChannelListingId
NoNone
LogisticsPostalAddressRecord ID of the postal address linked to the line.Int64
RefRecId
NoNone
LoyaltyDiscAmount_RUDiscount amount paid with loyalty points. Used for Russia.Real
RetailLoyaltyDiscAmount_RU
NoNone
LoyaltyDiscPct_RUDiscount percentage paid with loyalty points. Used for Russia.Real
RetailLoyaltyDiscPct_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
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field.Int64
ModifiedTransactionId
NoNone
netAmountNet amount of the line, excluding tax.Real
RetailNetAmount
NoNone
netAmountInclTaxNet amount of the line including tax. The label calls it the amount before tax.low confidenceReal
RetailNetAmountInclTax
NoNone
netPriceNet price of the item on the line.Real
RetailNetPrice
NoNone
NonGST_INShows whether the line is outside GST. Used for India.Enum
NonGST_IN
NoYes (enum)
NoNone
OriginLocation number that identifies where the record came from.String (50)
RetailConnDistributionLocationId
NoNone
originalOfLinkedItemListShows whether the item is the original of a linked product list.Enum
RetailOriginalOfLinkedItemList
NoYes (enum)
NoNone
originalPriceOriginal price of the item.Real
Price
NoNone
OriginalTaxGroupSales tax group before any change.String
TaxGroup
NoNone
OriginalTaxItemGroupItem sales tax group before any change.String
TaxItemGroup
NoNone
ParentInventTransIdLot ID of the parent inventory transaction.String (20)
InventTransId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
periodicDiscAmountAmount of periodic discount on the line.Real
DiscAmount
NoNone
periodicDiscGroupPeriodic discount group applied to the line.String
RetailPeriodicDiscGroup
NoNone
periodicDiscTypeType of periodic discount. Values are None, Quantity discount, Mix and match and Discount.Enum
RetailPeriodicDiscType (enum)
NoNone
PeriodicPercentageDiscountPercentage of periodic discount on the line.Real
DiscPct
NoNone
PickupEndTimeEnd time of the pickup time slot.Time
RetailPickupTimeslotEndTime
NoNone
PickupStartTimeStart time of the pickup time slot.Time
RetailPickupTimeslotStartTime
NoNone
PostingCalculatedWMSLocationIdWarehouse location linked to the line. The metadata gives no more detail.low confidenceString
WMSLocationId
NoNone
prescriptionIdPrescription ID linked to the line.String
RetailPrescriptionId
NoNone
pricePrice of the item on the line.Real
Price
NoNone
priceChangeShows whether the price was changed.Enum
RetailPriceChange
NoYes (enum)
NoNone
priceInBarcodeShows whether the price is held in the bar code.Enum
RetailPriceInBarcode
NoYes (enum)
NoNone
pumpIdPump ID linked to the line, as a whole number.Integer
Integer
NoNone
purchIdPurchase order number linked to the line.String (20)
PurchId
NoNone
qtyQuantity sold on the line.Real
Qty
NoNone
ReceiptDateRequestedDate the customer asked to receive the goods.Date
SalesReceiptDateRequested
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
replicatedShows whether the record was replicated.Enum
RetailReplicated
NoYes (enum)
NoNone
replicationCounterFromOriginReplication counter taken from the origin location.Integer
RetailReplicationCounter
NoNone
ReturnInventDimIdInventory dimension number used for the return.String (20)
InventDimId
NoNone
returnLineNumLine number of the original line being returned.Real
LineNum
NoNone
returnNoSaleShows whether the line is a return with no sale.Enum
RetailReturnNoSale
NoYes (enum)
NoNone
returnQtyQuantity returned on the line.Real
Qty
NoNone
returnStoreStore of the original transaction for a return.String
RetailStoreId
NoNone
returnTerminalIdRegister of the original transaction for a return.String
RetailTerminalId
NoNone
ReturnTrackingStatusShows whether a return line has been processed for returned quantities. Values are None, PendingProcessing and Processed.Enum
RetailReturnTrackingStatus
RetailReturnTrackingStatusType (enum)
NoNone
returnTransactionIdNumber of the original transaction for a return.String (44)
RetailTransactionId
NoNone
RFIDTagIdRFID tag ID of the item.String (24)
RFIDTagId
NoNone
SalesGroupSales group linked to the line.String
CommissSalesGroup
NoNone
SalesMarkupSales charges amount on the line.Real
SalesMarkup
NoNone
scaleItemShows whether the item is a scale product.Enum
RetailScaleItem
NoYes (enum)
NoNone
sectionSection number where the item is held.String
RetailSectionId
NoNone
ServiceAccountingCode_INService accounting code. Used for India.String
ServiceAccountingCode_IN
NoNone
shelfShelf number where the item is held.String
RetailShelfId
NoNone
shiftShift identifier of the transaction.String
RetailShiftId
NoNone
shiftDateDate of the shift.Date
RetailShiftDate
NoNone
ShippingDateRequestedDate the customer asked for shipment.Date
SalesShippingDateRequested
NoNone
SkipSalesLine_RUYes/no flag used for Russia. Purpose not clear from the metadata.low confidenceEnum
NoYes (enum)
NoNone
SourceIdSource code for the sale, used with call centre sales.String (20)
MCRSourceID
NoNone
staffSales staff member linked to the line.String (25)
RetailStaffId
NoNone
staffIdSales staff member linked to the line.String (25)
RetailStaffId
NoNone
statementCodeStatement code linked to the transaction.String (25)
RetailStatementCode
NoNone
statementIdStatement number linked to the transaction.String (20)
RetailStatementId
NoNone
stdNetPriceStandard net price of the item.Real
RetailNetPrice
NoNone
storeStore where the sale was made.String
RetailStoreId
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
taxAmountSales tax amount of the line.Real
TaxAmount
NoNone
TaxExemptPriceInclusiveOriginalPriceLine price before tax-inclusive pricing was exempted.Real
RetailTaxExemptOriginalPrice
NoNone
TaxExemptPriceInclusiveReductionAmountTax amount removed when tax-inclusive pricing is exempted.Real
RetailTaxExemptReductionAmount
NoNone
taxGroupSales tax group applied to the line.String
TaxGroup
NoNone
TaxItemGroupItem sales tax group applied to the line.String
TaxItemGroup
NoNone
TaxOverrideCodeSales tax override code used on the line.String (50)
TaxOverrideCode
NoNone
TaxRatePercentTax rate on the line, as a percentage.Real
RetailTaxRatePercent
NoNone
TaxRateTypeName of the tax rate type on the line.String (60)
TaxRateTypeName
NoNone
TenderDiscountAmountDiscount amount linked to the tender type.Real
DiscAmount
NoNone
TenderDiscountPercentageDiscount percentage linked to the tender type.Real
DiscPct
NoNone
terminalIdRegister (POS terminal) where the sale was made.String
RetailTerminalId
NoNone
totalDiscAmountTotal discount amount on the line.Real
DiscAmount
NoNone
totalDiscInfoCodeLineNumLine number linked to the total discount reason code.low confidenceReal
LineNum
NoNone
totalDiscPctTotal discount percentage on the line.Real
DiscPct
NoNone
totalRoundedAmountAmount of rounding on the line.Real
RetailRoundedAmount
NoNone
transactionCodeHow the item was found at sale. Values are Product on file, Product/Barcode not on file and Product blocked.Enum
RetailItemTransactionCode (enum)
NoNone
transactionIdNumber of the retail transaction that the line belongs to.String (44)
RetailTransactionId
YesNone
transactionStatusStatus of the transaction entry, such as Voided, Posted, Concluded, Cancelled or On Hold.Enum
RetailTransEntryStatus
RetailEntryStatus (enum)
NoNone
transDateTransaction date.Date
TransDate
NoNone
transTimeTime of the transaction.Time
RetailTransTime
NoNone
unitUnit of measure of the item.String
UnitOfMeasureSymbol
NoNone
unitPricePrice per unit.Real
Price
NoNone
unitQtyQuantity in units.Real
UnitQty
NoNone
UpSellOriginWhere the line came from. Values are None, Item cross-sell, Item up-sell and Catalog.Enum
MCRUpSellOrigin (enum)
NoNone
UpSellOriginOfferIdItem or catalog ID of the offer that led to the line.String (20)
MCRItemIdOfferId
NoNone
variantIdProduct variant number.String
RetailVariantId
NoNone
WarehouseLocationWarehouse location linked to the line.String
WMSLocationId
NoNone
weightItemShows whether the item is sold by weight.Enum
RetailWeightItem
NoYes (enum)
NoNone
weightManuallyEnteredShows whether the weight was typed in by hand.Enum
RetailWeightManuallyEntered
NoYes (enum)
NoNone

Indexes (2)

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.

Email sales@drdynamics.co.uk