Table

RetailSalesLineHistory

Retail sales line

Holds extra retail details for a sales order line, linked by the sales line record ID. It covers discounts, price overrides, fulfilment status and quantities, info codes, tax exemption and price lock. It also holds catalogue, listing and pickup time data.

Table name
RetailSalesLineHistory
Module
Commerce transactions and orders
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (42)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
BlockItemReturnYes or No flag showing whether returns are blocked for the item.Enum
RetailBlockItemReturn
NoYes (enum)
NoNone
CatalogRecord ID of the catalogue for the line.Int64
CatalogRefRecId
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FulfillmentStatusStage of fulfilment, from pending and picking to packed and invoiced.Enum
RetailFulfillmentLineStatus (enum)
NoNone
FulfillmentStoreIdStore number of the store that fulfils the line.String
RetailStoreId
NoNone
InfocodeIdNumber of the info code linked to the line.String
RetailInfocodeId
NoNone
InformationInformation text entered for the info code.String (100)
RetailInfocodeInformation
NoNone
InventTransIdLot ID that links to the sales line.String (20)
TradeInventTransId
NoNone
IsPriceKeyedInYes or No flag for whether the price was keyed in.Enum
RetailPriceChange
NoYes (enum)
NoNone
IsPriceLockedYes or No flag showing whether the price is locked.Enum
RetailPriceLock
NoYes (enum)
NoNone
IsPriceOverriddenYes or No flag for whether the price was changed.Enum
RetailPriceChange
NoYes (enum)
NoNone
LineDscAmountLine discount amount in cash.Real
DiscAmount
NoNone
LineManualDiscountAmountManual discount amount on the line.Real
DiscAmount
NoNone
LineManualDiscountPercentageManual discount percentage on the line.Real
DiscPct
NoNone
LinePercentageDiscountLine discount percentage.Real
DiscPct
NoNone
ListingIdChannel listing ID of the product.String (50)
RetailChannelListingId
NoNone
OriginalPriceSales price before any override.Real
SalesPrice
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PeriodicDiscountPeriodic discount amount in cash.Real
DiscAmount
NoNone
PeriodicPercentageDiscountPeriodic discount percentage.Real
DiscPct
NoNone
PickupEndTimeEnd of the pickup time slot.Time
RetailPickupTimeslotEndTime
NoNone
PickupStartTimeStart of the pickup time slot.Time
RetailPickupTimeslotStartTime
NoNone
PriceOverrideReasonCodeReason code for a price override.String
RetailInformationSubcodeId
NoNone
QuantityColumnsVersionVersion of the quantity columns used on the line, V0 or V1.Enum
RetailSalesLineQuantityColumnsVersion (enum)
NoNone
QuantityInvoicedQuantity invoiced.Real
InventQty
NoNone
QuantityNotProcessedQuantity not yet processed.Real
InventQty
NoNone
QuantityPackedQuantity packed.Real
InventQty
NoNone
QuantityPhysicallyReservedQuantity physically reserved.Real
InventQty
NoNone
QuantityPickedQuantity picked.Real
InventQty
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
RetailProductListLineUpdateIdID of the product list line.String (40)
RetailProductListLineId
NoNone
ReturnReasonCodeIdCode for the reason for the return.String
ReturnReasonCodeId
NoNone
SalesLineRecord ID of the sales line.Int64
RefRecId
NoSalesLine.RecIdNone
SubInfocodeIdNumber of the subcode linked to the info code.String
RetailInformationSubcodeId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxExemptPriceInclusiveOriginalPriceLine price before tax was exempted, where prices include tax.Real
RetailTaxExemptOriginalPrice
NoNone
TaxExemptPriceInclusiveReductionAmountTax amount that was exempted, where prices include tax.Real
RetailTaxExemptReductionAmount
NoNone
TenderDiscountDiscount amount from the payment method.Real
DiscAmount
NoNone
TenderDiscountPercentageDiscount percentage from the payment method.Real
DiscPct
NoNone
TotalDiscountTotal discount amount in cash.Real
DiscAmount
NoNone
TotalPctDiscountTotal discount percentage.Real
DiscPct
NoNone

Indexes (1)

Relations (1)

Each relation joins RetailSalesLineHistory to another table on the fields shown.

  • SalesLine1 → SalesLine

    Join on SalesLine = SalesLine.RecId

    Zero or one RetailSalesLineHistory record → exactly one SalesLine record

Get this data out

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

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

Email sales@drdynamics.co.uk