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 descriptionType / EDT / enumMandatoryReferencesIn public entities
InventTransIdLot ID that points to the sales line.String (20)
TradeInventTransId
YesSalesLine.InventTransIdNone
OfferIdPeriodic discount offer that the adjustment comes from.String (20)
RetailOfferIdEx3
NoRetailPeriodicDiscountLine.OfferIdNone
LineNumLine number of the periodic discount line.Real
LineNum
NoRetailPeriodicDiscountLine.LineNumNone
AmountDiscount amount in cash.Real
DiscAmount
NoNone
CalculatedPricingPriorityNumberPricing priority number that was calculated.Integer
RetailPricingPriorityNumber
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DiscountMethodHow the discount is worked out: percentage off, amount off or unit price.Enum
RetailDiscountOfferLineDiscountMethod
RetailDiscountOfferLineDiscMethodBase (enum)
NoNone
NameName of the adjustment.String (60)
Name
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
RetailPeriodicDiscountLineRefRecIdRecord ID of the periodic discount line used.Int64
RefRecId
YesRetailPeriodicDiscountLine.RecIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (2)

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

  • SalesLine → SalesLine

    Join on InventTransId = SalesLine.InventTransId

    Cardinality not set in the metadata.

  • RetailPeriodicDiscountLine → RetailPeriodicDiscountLine

    Join on RetailPeriodicDiscountLineRefRecId = RetailPeriodicDiscountLine.RecId, OfferId = RetailPeriodicDiscountLine.OfferId, LineNum = RetailPeriodicDiscountLine.LineNum

    Cardinality 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.

Email sales@drdynamics.co.uk