Table
RetailSalesPriceAdjustmentLine
Retail Sales Price Adjustment Line
Records periodic discount lines that adjusted the price of a sales order line. Its key is lot ID, offer ID and line number. It links to the sales line and to the periodic discount line, and shows the calculation type and amount.
- Table name
RetailSalesPriceAdjustmentLine- Module
Commerce transactions and orders- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
RetailSalesPriceAdjustmentLineIdx- Replacement key
None- Key fields
InventTransId, OfferId, LineNum- Model
Foundation
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
InventTransIdLot ID that points to the sales line. | String (20)TradeInventTransId | Yes | SalesLine.InventTransId | None |
OfferIdPeriodic discount offer that the adjustment comes from. | String (20)RetailOfferIdEx3 | No | RetailPeriodicDiscountLine.OfferId | None |
LineNumLine number of the periodic discount line. | RealLineNum | No | RetailPeriodicDiscountLine.LineNum | None |
AmountDiscount amount in cash. | RealDiscAmount | No | None | |
CalculatedPricingPriorityNumberPricing priority number that was calculated. | IntegerRetailPricingPriorityNumber | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DiscountMethodHow the discount is worked out: percentage off, amount off or unit price. | EnumRetailDiscountOfferLineDiscountMethodRetailDiscountOfferLineDiscMethodBase (enum) | No | None | |
NameName of the adjustment. | String (60)Name | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
RetailPeriodicDiscountLineRefRecIdRecord ID of the periodic discount line used. | Int64RefRecId | Yes | RetailPeriodicDiscountLine.RecId | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
RetailSalesPriceAdjustmentLineIdxPrimary indexInventTransId,OfferId,LineNumUnique, alternate key.
Relations (2)
Each relation joins RetailSalesPriceAdjustmentLine to another table on the fields shown.
SalesLine→SalesLineJoin on
InventTransId = SalesLine.InventTransIdCardinality not set in the metadata.
RetailPeriodicDiscountLine→RetailPeriodicDiscountLineJoin on
RetailPeriodicDiscountLineRefRecId = RetailPeriodicDiscountLine.RecId,OfferId = RetailPeriodicDiscountLine.OfferId,LineNum = RetailPeriodicDiscountLine.LineNumCardinality not set in the metadata.
Get this data out
No public entity reads from RetailSalesPriceAdjustmentLine. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailSalesPriceAdjustmentLine in a report, an integration or a migration? Talk to Dr Dynamics.