Table

RetailPricingSimulatorDiscount

Periodic discount

Holds periodic discounts used in a pricing simulator sales transaction. Each record shows discount details such as type, status, validity dates, currency and concurrency mode. It also shows whether the discount was applied.

Table name
RetailPricingSimulatorDiscount
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 (28)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ConcurrencyModeRule for how this discount combines with other discounts, such as exclusive, best price or compounded.Enum
RetailDiscountConcurrency (enum)
NoNone
CurrencyCodeCurrency of the discount.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DateValidationTypeType of date check for the discount, either Standard or Advanced.Enum
RetailDateValidationTypeBase (enum)
NoNone
DescriptionFree-text description of the discount.String (-1)
RetailMemo
NoNone
DisclaimerFree-text disclaimer for the discount.String (-1)
RetailMemo
NoNone
DiscountCodeDiscount code that this record points to.Int64
RefRecId
NoRetailDiscountCode.RecIdNone
DiscountLedgerDimensionDiscount account, given as a ledger dimension combination.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
DiscountMethodWhole number for the discount method. The metadata does not give its values.low confidenceIntegerNoNone
DiscountPercentValuePercentage taken off by the discount.Real
RetailDiscountPercentValue
NoNone
IsDiscountCodeRequiredYes or No flag showing whether a coupon code is required.Enum
RetailDiscountCodeRequired
NoYes (enum)
NoNone
NameName of the discount.String (60)
Name
NoNone
OfferIdIdentifier of the discount offer.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
PriceComponentCodeNameCode of the price component.String (80)
GUPPriceComponentCodeName
NoNone
PricingPriorityNumberPricing priority linked to the discount.Integer
RetailPricingPriorityNumber
NoRetailPricingPriorityTable.PriorityNumberNone
PricingRuleHeaderPrice rule that this discount points to.Int64
GUPRefRecId
NoGUPPricingRule.RecIdNone
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
RetailPricingSimulatorTransactionIdPricing simulator sales transaction that this discount belongs to.Int64
RefRecId
NoRetailPricingSimulatorSalesTransaction.RecIdNone
SalesTransactionLineIdSystem record ID of the sales transaction line. The metadata does not name the related table.low confidenceInt64NoNone
SelectedYes or No flag showing whether the discount was applied.Enum
NoYesId
NoYes (enum)
NoNone
StatusShows whether the discount is Enabled or Disabled.Enum
RetailDisabledEnabled (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
ValidationPeriodIdDiscount validation period that sets the valid dates.String
RetailDiscountValidationPeriodId
NoRetailDiscountValidationPeriod.periodIdNone
ValidFromFirst date on which the discount is valid.Date
ValidFromDate
NoNone
ValidToLast date on which the discount is valid.Date
ValidToDate
NoNone

Indexes (2)

Relations (7)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many RetailPricingSimulatorDiscount records → exactly one Currency record

  • DimensionAttributeValueCombination → DimensionAttributeValueCombination

    Join on DiscountLedgerDimension = DimensionAttributeValueCombination.RecId

    Many RetailPricingSimulatorDiscount records → zero or one DimensionAttributeValueCombination record

  • DiscountCode → RetailDiscountCode

    Join on DiscountCode = RetailDiscountCode.RecId

    Zero or one RetailPricingSimulatorDiscount record → zero or one RetailDiscountCode record

  • RetailDiscountValidationPeriod → RetailDiscountValidationPeriod

    Join on ValidationPeriodId = RetailDiscountValidationPeriod.periodId

    Many RetailPricingSimulatorDiscount records → zero or one RetailDiscountValidationPeriod record

  • RetailPricingPriorityTable → RetailPricingPriorityTable

    Join on PricingPriorityNumber = RetailPricingPriorityTable.PriorityNumber

    Many RetailPricingSimulatorDiscount records → zero or one RetailPricingPriorityTable record

  • RetailPricingSimulatorSalesTransaction → RetailPricingSimulatorSalesTransaction

    Join on RetailPricingSimulatorTransactionId = RetailPricingSimulatorSalesTransaction.RecId

    Cardinality not set in the metadata.

  • GUPPricingRuleHeader → GUPPricingRule

    Join on PricingRuleHeader = GUPPricingRule.RecId

    Zero or one RetailPricingSimulatorDiscount record → exactly one GUPPricingRule record

Get this data out

No public entity reads from RetailPricingSimulatorDiscount. Its data is only reachable through the application, a custom entity or a database export.

Need help with RetailPricingSimulatorDiscount in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk