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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ConcurrencyModeRule for how this discount combines with other discounts, such as exclusive, best price or compounded. | EnumRetailDiscountConcurrency (enum) | No | None | |
CurrencyCodeCurrency of the discount. | String (3)CurrencyCode | No | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DateValidationTypeType of date check for the discount, either Standard or Advanced. | EnumRetailDateValidationTypeBase (enum) | No | None | |
DescriptionFree-text description of the discount. | String (-1)RetailMemo | No | None | |
DisclaimerFree-text disclaimer for the discount. | String (-1)RetailMemo | No | None | |
DiscountCodeDiscount code that this record points to. | Int64RefRecId | No | RetailDiscountCode.RecId | None |
DiscountLedgerDimensionDiscount account, given as a ledger dimension combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | None |
DiscountMethodWhole number for the discount method. The metadata does not give its values.low confidence | Integer | No | None | |
DiscountPercentValuePercentage taken off by the discount. | RealRetailDiscountPercentValue | No | None | |
IsDiscountCodeRequiredYes or No flag showing whether a coupon code is required. | EnumRetailDiscountCodeRequiredNoYes (enum) | No | None | |
NameName of the discount. | String (60)Name | No | None | |
OfferIdIdentifier of the discount offer. | 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 | |
PriceComponentCodeNameCode of the price component. | String (80)GUPPriceComponentCodeName | No | None | |
PricingPriorityNumberPricing priority linked to the discount. | IntegerRetailPricingPriorityNumber | No | RetailPricingPriorityTable.PriorityNumber | None |
PricingRuleHeaderPrice rule that this discount points to. | Int64GUPRefRecId | No | GUPPricingRule.RecId | 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 | |
RetailPricingSimulatorTransactionIdPricing simulator sales transaction that this discount belongs to. | Int64RefRecId | No | RetailPricingSimulatorSalesTransaction.RecId | None |
SalesTransactionLineIdSystem record ID of the sales transaction line. The metadata does not name the related table.low confidence | Int64 | No | None | |
SelectedYes or No flag showing whether the discount was applied. | EnumNoYesIdNoYes (enum) | No | None | |
StatusShows whether the discount is Enabled or Disabled. | EnumRetailDisabledEnabled (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ValidationPeriodIdDiscount validation period that sets the valid dates. | StringRetailDiscountValidationPeriodId | No | RetailDiscountValidationPeriod.periodId | None |
ValidFromFirst date on which the discount is valid. | DateValidFromDate | No | None | |
ValidToLast date on which the discount is valid. | DateValidToDate | No | None |
Indexes (2)
CurrencyIdxNot unique.
SalesTransactionIdIndexRetailPricingSimulatorTransactionIdNot unique.
Relations (7)
Each relation joins RetailPricingSimulatorDiscount to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany RetailPricingSimulatorDiscount records → exactly one Currency record
DimensionAttributeValueCombination→DimensionAttributeValueCombinationJoin on
DiscountLedgerDimension = DimensionAttributeValueCombination.RecIdMany RetailPricingSimulatorDiscount records → zero or one DimensionAttributeValueCombination record
DiscountCode→RetailDiscountCodeJoin on
DiscountCode = RetailDiscountCode.RecIdZero or one RetailPricingSimulatorDiscount record → zero or one RetailDiscountCode record
RetailDiscountValidationPeriod→RetailDiscountValidationPeriodJoin on
ValidationPeriodId = RetailDiscountValidationPeriod.periodIdMany RetailPricingSimulatorDiscount records → zero or one RetailDiscountValidationPeriod record
RetailPricingPriorityTable→RetailPricingPriorityTableJoin on
PricingPriorityNumber = RetailPricingPriorityTable.PriorityNumberMany RetailPricingSimulatorDiscount records → zero or one RetailPricingPriorityTable record
RetailPricingSimulatorSalesTransaction→RetailPricingSimulatorSalesTransactionJoin on
RetailPricingSimulatorTransactionId = RetailPricingSimulatorSalesTransaction.RecIdCardinality not set in the metadata.
GUPPricingRuleHeader→GUPPricingRuleJoin on
PricingRuleHeader = GUPPricingRule.RecIdZero 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.