Table

RetailPricingSimulatorPriceDiscTable

Holds price and discount records used by the retail pricing simulator. Each row has a price or discount type, an account and item selection, quantity and date ranges, and an amount or discount percentages. Rows link to a simulator sales transaction, price rules, a price group and a price attribute group combination.

Table name
RetailPricingSimulatorPriceDiscTable
Module
Commerce merchandising
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (40)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountCodeShows whether the account selection is a single account, a group or all accounts.Enum
PriceDiscAccountCode
TableGroupAll (enum)
NoNone
AccountRelationThe account or account group that the record applies to, depending on the account code.String (20)
PriceDiscAccountRelation
NoNone
AmountPrice or discount amount, in the transaction currency.Real
AmountCur
NoNone
CalculatedPricingPriorityNumberPriority number of the record, used to rank it against other pricing records.Integer
RetailPricingPriorityNumber
NoNone
ColorIdProduct colour the record applies to.String
EcoResItemColorName
NoNone
ConfigurationIdProduct configuration the record applies to.String (50)
EcoResItemConfigurationName
NoNone
CurrencyCurrency code of the record.String (3)
CurrencyCode
YesNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FromDateDate from which the record is valid.Date
FromDate
NoNone
InventDimIdIdentifier of the inventory dimension combination the record applies to.String (20)
InventDimId
NoNone
InventSiteIdInventory site for the record.String
InventSiteId
NoNone
ItemCodeShows whether the item selection is a single item, a group or all items.Enum
PriceDiscItemCode
TableGroupAll (enum)
NoNone
ItemRelationThe item or item group that the record applies to, depending on the item code.String (20)
PriceDiscItemRelation
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
Percent1First discount percentage.Real
DiscPct
NoNone
Percent2Second discount percentage.Real
DiscPct
NoNone
PriceApplyAdjustmentYes/No flag that allows a price adjustment to be applied to the price.Enum
GUPPriceDiscPriceApplyAdjustment
NoYes (enum)
NoNone
PriceComponentCombinationPoints to a price attribute group combination.Int64
GUPPriceComponentCodeCombinationRecId
NoGUPPriceComponentCodePriceAttributeGroupCombination.RecIdNone
PriceDiscTableRecIdRecord ID of the related price or discount record; the target table is not stated in the metadata.low confidenceInt64
RefRecId
NoNone
PriceGroupPrice group the record belongs to.String
PriceGroupId
NoNone
PricePreventDiscountYes/No flag that stops further discounts being given on this price.Enum
GUPPriceDiscPricePreventDiscount
NoYes (enum)
NoNone
PriceUnitQuantity that the price refers to, for example price per 1 or per 100 units.Real
PriceUnit
NoNone
PricingRuleHeaderPoints to the price rule header record.Int64
GUPRefRecId
NoGUPPricingRule.RecIdNone
PricingRuleLinePoints to the price rule line record.Int64
GUPRefRecId
NoGUPPricingRule.RecIdNone
QuantityAmountFromLower limit of the quantity or amount range for the record.Real
AmountQty
NoNone
QuantityAmountToUpper limit of the quantity or amount range for the record.Real
AmountQuantityTo
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
relationType of price or discount record, such as sales price, line discount or total discount, for purchasing or sales.Enum
PriceType (enum)
NoNone
RetailPricingSimulatorTransactionIdPoints to the simulator sales transaction header that this row belongs to.Int64
RefRecId
NoRetailPricingSimulatorSalesTransaction.RecIdNone
SalesTransactionLineIdIdentifier of a simulator sales transaction line; the label and relation are not given, so the link is inferred from the name.low confidenceInt64NoNone
SelectedYes/No flag showing whether this record was applied in the simulation.Enum
NoYesId
NoYes (enum)
NoNone
SiteIdInventory site the record applies to.String
InventSiteId
NoNone
SizeIdProduct size the record applies to.String
EcoResItemSizeName
NoNone
StyleIdProduct style the record applies to.String
EcoResItemStyleName
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
ToDateDate until which the record is valid.Date
ToDate
NoNone
UnitAppliesToAllYes/No flag that allows unit conversion, so the record can apply to other units.Enum
GUPUnitAppliesToAll
NoYes (enum)
NoNone
UnitIdUnit of measure the price or discount is given in.String
UnitOfMeasureSymbol
NoNone
WarehouseIdWarehouse the record applies to.String
InventLocationId
NoNone

Indexes (1)

Relations (6)

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

  • RetailPricingSimulatorSalesTransaction → RetailPricingSimulatorSalesTransaction

    Join on RetailPricingSimulatorTransactionId = RetailPricingSimulatorSalesTransaction.RecId

    Cardinality not set in the metadata.

  • GUPPricingRuleHeader → GUPPricingRule

    Join on PricingRuleHeader = GUPPricingRule.RecId

    Zero or one RetailPricingSimulatorPriceDiscTable record → exactly one GUPPricingRule record

  • GUPPricingRuleLine → GUPPricingRule

    Join on PricingRuleLine = GUPPricingRule.RecId

    Zero or one RetailPricingSimulatorPriceDiscTable record → exactly one GUPPricingRule record

  • GUPPriceComponentCodePriceAttributeGroupCombination → GUPPriceComponentCodePriceAttributeGroupCombination

    Join on PriceComponentCombination = GUPPriceComponentCodePriceAttributeGroupCombination.RecId

    Zero or one RetailPricingSimulatorPriceDiscTable record → zero or one GUPPriceComponentCodePriceAttributeGroupCombination record

  • GUPCustPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::PriceSales, PriceGroup = PriceDiscGroup.GroupId

    Many RetailPricingSimulatorPriceDiscTable records → zero or one PriceDiscGroup record

  • GUPSalesPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::PriceSales, PriceGroup = PriceDiscGroup.GroupId

    Many RetailPricingSimulatorPriceDiscTable records → zero or one PriceDiscGroup record

Get this data out

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

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

Email sales@drdynamics.co.uk