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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CalculatedPricingPriorityNumberPricing priority value for the discount.Integer
RetailPricingPriorityNumber
NoNone
ConcurrencyModeRule for how this discount combines with other discounts, such as exclusive, best price or compounded.Enum
RetailDiscountConcurrency (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DiscountLineRecIdSystem record ID of the related periodic discount line.Int64
RecId
YesNone
EffectiveDiscountAmountTotal discount amount actually applied. The currency is not stated in the metadata.Real
AmountCur
NoNone
EffectiveDiscountAmountPerUnitDiscount amount actually applied per unit. The currency is not stated in the metadata.Real
AmountCur
NoNone
LineNumLine number.Real
LineNum
NoNone
NameName of the discount.String (60)
Name
NoNone
OfferIdIdentifier of the discount offer, linked to the simulator discount.String (20)
RetailOfferIdEx3
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PeriodicDiscountTypeKind of discount, such as quantity, mix and match, simple, threshold or free item.Enum
RetailDiscountOfferTypeBase (enum)
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
SalesLineIdSimulator sales line that this discount applies to.Int64
RefRecId
NoRetailPricingSimulatorSalesLine.RecIdNone
SalesTransactionIdPricing simulator sales transaction that this entry belongs to.Int64
RefRecId
NoRetailPricingSimulatorSalesTransaction.RecIdNone
SelectedYes or No flag showing whether the discount was applied.Enum
NoYes (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (4)

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

  • RetailPricingSimulatorSalesTransaction → RetailPricingSimulatorSalesTransaction

    Join on SalesTransactionId = RetailPricingSimulatorSalesTransaction.RecId

    Many RetailPricingSimulatorLineDiscount records → exactly one RetailPricingSimulatorSalesTransaction record

  • RetailPricingSimulatorSalesLine → RetailPricingSimulatorSalesLine

    Join on SalesLineId = RetailPricingSimulatorSalesLine.RecId

    Many RetailPricingSimulatorLineDiscount records → exactly one RetailPricingSimulatorSalesLine record

  • RetailPricingSimulatorDiscount → RetailPricingSimulatorDiscount

    Join on SalesTransactionId = RetailPricingSimulatorDiscount.RetailPricingSimulatorTransactionId, OfferId = RetailPricingSimulatorDiscount.OfferId

    Many RetailPricingSimulatorLineDiscount records → zero or one RetailPricingSimulatorDiscount record

  • GUPRetailPricingSimulatorDiscountLine → GUPRetailPricingSimulatorDiscountLine

    Join on SalesTransactionId = GUPRetailPricingSimulatorDiscountLine.RetailPricingSimulatorTransactionId, DiscountLineRecId = GUPRetailPricingSimulatorDiscountLine.DiscountLineRecId

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

Email sales@drdynamics.co.uk