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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
BlockItemReturnYes or No flag showing whether returns are blocked for the item. | EnumRetailBlockItemReturnNoYes (enum) | No | None | |
CatalogRecord ID of the catalogue for the line. | Int64CatalogRefRecId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FulfillmentStatusStage of fulfilment, from pending and picking to packed and invoiced. | EnumRetailFulfillmentLineStatus (enum) | No | None | |
FulfillmentStoreIdStore number of the store that fulfils the line. | StringRetailStoreId | No | None | |
InfocodeIdNumber of the info code linked to the line. | StringRetailInfocodeId | No | None | |
InformationInformation text entered for the info code. | String (100)RetailInfocodeInformation | No | None | |
InventTransIdLot ID that links to the sales line. | String (20)TradeInventTransId | No | None | |
IsPriceKeyedInYes or No flag for whether the price was keyed in. | EnumRetailPriceChangeNoYes (enum) | No | None | |
IsPriceLockedYes or No flag showing whether the price is locked. | EnumRetailPriceLockNoYes (enum) | No | None | |
IsPriceOverriddenYes or No flag for whether the price was changed. | EnumRetailPriceChangeNoYes (enum) | No | None | |
LineDscAmountLine discount amount in cash. | RealDiscAmount | No | None | |
LineManualDiscountAmountManual discount amount on the line. | RealDiscAmount | No | None | |
LineManualDiscountPercentageManual discount percentage on the line. | RealDiscPct | No | None | |
LinePercentageDiscountLine discount percentage. | RealDiscPct | No | None | |
ListingIdChannel listing ID of the product. | String (50)RetailChannelListingId | No | None | |
OriginalPriceSales price before any override. | RealSalesPrice | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PeriodicDiscountPeriodic discount amount in cash. | RealDiscAmount | No | None | |
PeriodicPercentageDiscountPeriodic discount percentage. | RealDiscPct | No | None | |
PickupEndTimeEnd of the pickup time slot. | TimeRetailPickupTimeslotEndTime | No | None | |
PickupStartTimeStart of the pickup time slot. | TimeRetailPickupTimeslotStartTime | No | None | |
PriceOverrideReasonCodeReason code for a price override. | StringRetailInformationSubcodeId | No | None | |
QuantityColumnsVersionVersion of the quantity columns used on the line, V0 or V1. | EnumRetailSalesLineQuantityColumnsVersion (enum) | No | None | |
QuantityInvoicedQuantity invoiced. | RealInventQty | No | None | |
QuantityNotProcessedQuantity not yet processed. | RealInventQty | No | None | |
QuantityPackedQuantity packed. | RealInventQty | No | None | |
QuantityPhysicallyReservedQuantity physically reserved. | RealInventQty | No | None | |
QuantityPickedQuantity picked. | RealInventQty | 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 | |
RetailProductListLineUpdateIdID of the product list line. | String (40)RetailProductListLineId | No | None | |
ReturnReasonCodeIdCode for the reason for the return. | StringReturnReasonCodeId | No | None | |
SalesLineRecord ID of the sales line. | Int64RefRecId | No | SalesLine.RecId | None |
SubInfocodeIdNumber of the subcode linked to the info code. | StringRetailInformationSubcodeId | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxExemptPriceInclusiveOriginalPriceLine price before tax was exempted, where prices include tax. | RealRetailTaxExemptOriginalPrice | No | None | |
TaxExemptPriceInclusiveReductionAmountTax amount that was exempted, where prices include tax. | RealRetailTaxExemptReductionAmount | No | None | |
TenderDiscountDiscount amount from the payment method. | RealDiscAmount | No | None | |
TenderDiscountPercentageDiscount percentage from the payment method. | RealDiscPct | No | None | |
TotalDiscountTotal discount amount in cash. | RealDiscAmount | No | None | |
TotalPctDiscountTotal discount percentage. | RealDiscPct | No | None |
Indexes (1)
SalesLineIdxSalesLine,FulfillmentStatus,FulfillmentStoreId,PickupEndTime,PickupStartTime,QuantityPacked,QuantityPicked,QuantityInvoiced,QuantityNotProcessed,QuantityPhysicallyReserved,QuantityColumnsVersionUnique, alternate key.
Relations (1)
Each relation joins RetailSalesLineHistory to another table on the fields shown.
SalesLine1→SalesLineJoin on
SalesLine = SalesLine.RecIdZero 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.