Table
RetailPricingSimulatorLineDiscount
Periodic discount
Holds periodic discounts at sales line level in a pricing simulator. Each record links to a simulator transaction and sales line. It shows the discount, whether it was applied and the amounts actually applied.
- Table name
RetailPricingSimulatorLineDiscount- Module
Commerce merchandising- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (17)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CalculatedPricingPriorityNumberPricing priority value for the discount. | IntegerRetailPricingPriorityNumber | No | None | |
ConcurrencyModeRule for how this discount combines with other discounts, such as exclusive, best price or compounded. | EnumRetailDiscountConcurrency (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DiscountLineRecIdSystem record ID of the related periodic discount line. | Int64RecId | Yes | None | |
EffectiveDiscountAmountTotal discount amount actually applied. The currency is not stated in the metadata. | RealAmountCur | No | None | |
EffectiveDiscountAmountPerUnitDiscount amount actually applied per unit. The currency is not stated in the metadata. | RealAmountCur | No | None | |
LineNumLine number. | RealLineNum | No | None | |
NameName of the discount. | String (60)Name | No | None | |
OfferIdIdentifier of the discount offer, linked to the simulator discount. | String (20)RetailOfferIdEx3 | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PeriodicDiscountTypeKind of discount, such as quantity, mix and match, simple, threshold or free item. | EnumRetailDiscountOfferTypeBase (enum) | 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 | |
SalesLineIdSimulator sales line that this discount applies to. | Int64RefRecId | No | RetailPricingSimulatorSalesLine.RecId | None |
SalesTransactionIdPricing simulator sales transaction that this entry belongs to. | Int64RefRecId | No | RetailPricingSimulatorSalesTransaction.RecId | None |
SelectedYes or No flag showing whether the discount was applied. | EnumNoYes (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
SalesTransactionIdIndexNot unique.
Relations (4)
Each relation joins RetailPricingSimulatorLineDiscount to another table on the fields shown.
RetailPricingSimulatorSalesTransaction→RetailPricingSimulatorSalesTransactionJoin on
SalesTransactionId = RetailPricingSimulatorSalesTransaction.RecIdMany RetailPricingSimulatorLineDiscount records → exactly one RetailPricingSimulatorSalesTransaction record
RetailPricingSimulatorSalesLine→RetailPricingSimulatorSalesLineJoin on
SalesLineId = RetailPricingSimulatorSalesLine.RecIdMany RetailPricingSimulatorLineDiscount records → exactly one RetailPricingSimulatorSalesLine record
RetailPricingSimulatorDiscount→RetailPricingSimulatorDiscountJoin on
SalesTransactionId = RetailPricingSimulatorDiscount.RetailPricingSimulatorTransactionId,OfferId = RetailPricingSimulatorDiscount.OfferIdMany RetailPricingSimulatorLineDiscount records → zero or one RetailPricingSimulatorDiscount record
GUPRetailPricingSimulatorDiscountLine→GUPRetailPricingSimulatorDiscountLineJoin on
SalesTransactionId = GUPRetailPricingSimulatorDiscountLine.RetailPricingSimulatorTransactionId,DiscountLineRecId = GUPRetailPricingSimulatorDiscountLine.DiscountLineRecIdMany RetailPricingSimulatorLineDiscount records → zero or one GUPRetailPricingSimulatorDiscountLine record
Get this data out
No public entity reads from RetailPricingSimulatorLineDiscount. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailPricingSimulatorLineDiscount in a report, an integration or a migration? Talk to Dr Dynamics.