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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountCodeShows whether the account selection is a single account, a group or all accounts. | EnumPriceDiscAccountCodeTableGroupAll (enum) | No | None | |
AccountRelationThe account or account group that the record applies to, depending on the account code. | String (20)PriceDiscAccountRelation | No | None | |
AmountPrice or discount amount, in the transaction currency. | RealAmountCur | No | None | |
CalculatedPricingPriorityNumberPriority number of the record, used to rank it against other pricing records. | IntegerRetailPricingPriorityNumber | No | None | |
ColorIdProduct colour the record applies to. | StringEcoResItemColorName | No | None | |
ConfigurationIdProduct configuration the record applies to. | String (50)EcoResItemConfigurationName | No | None | |
CurrencyCurrency code of the record. | String (3)CurrencyCode | Yes | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FromDateDate from which the record is valid. | DateFromDate | No | None | |
InventDimIdIdentifier of the inventory dimension combination the record applies to. | String (20)InventDimId | No | None | |
InventSiteIdInventory site for the record. | StringInventSiteId | No | None | |
ItemCodeShows whether the item selection is a single item, a group or all items. | EnumPriceDiscItemCodeTableGroupAll (enum) | No | None | |
ItemRelationThe item or item group that the record applies to, depending on the item code. | String (20)PriceDiscItemRelation | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
Percent1First discount percentage. | RealDiscPct | No | None | |
Percent2Second discount percentage. | RealDiscPct | No | None | |
PriceApplyAdjustmentYes/No flag that allows a price adjustment to be applied to the price. | EnumGUPPriceDiscPriceApplyAdjustmentNoYes (enum) | No | None | |
PriceComponentCombinationPoints to a price attribute group combination. | Int64GUPPriceComponentCodeCombinationRecId | No | GUPPriceComponentCodePriceAttributeGroupCombination.RecId | None |
PriceDiscTableRecIdRecord ID of the related price or discount record; the target table is not stated in the metadata.low confidence | Int64RefRecId | No | None | |
PriceGroupPrice group the record belongs to. | StringPriceGroupId | No | None | |
PricePreventDiscountYes/No flag that stops further discounts being given on this price. | EnumGUPPriceDiscPricePreventDiscountNoYes (enum) | No | None | |
PriceUnitQuantity that the price refers to, for example price per 1 or per 100 units. | RealPriceUnit | No | None | |
PricingRuleHeaderPoints to the price rule header record. | Int64GUPRefRecId | No | GUPPricingRule.RecId | None |
PricingRuleLinePoints to the price rule line record. | Int64GUPRefRecId | No | GUPPricingRule.RecId | None |
QuantityAmountFromLower limit of the quantity or amount range for the record. | RealAmountQty | No | None | |
QuantityAmountToUpper limit of the quantity or amount range for the record. | RealAmountQuantityTo | 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 | |
relationType of price or discount record, such as sales price, line discount or total discount, for purchasing or sales. | EnumPriceType (enum) | No | None | |
RetailPricingSimulatorTransactionIdPoints to the simulator sales transaction header that this row belongs to. | Int64RefRecId | No | RetailPricingSimulatorSalesTransaction.RecId | None |
SalesTransactionLineIdIdentifier of a simulator sales transaction line; the label and relation are not given, so the link is inferred from the name.low confidence | Int64 | No | None | |
SelectedYes/No flag showing whether this record was applied in the simulation. | EnumNoYesIdNoYes (enum) | No | None | |
SiteIdInventory site the record applies to. | StringInventSiteId | No | None | |
SizeIdProduct size the record applies to. | StringEcoResItemSizeName | No | None | |
StyleIdProduct style the record applies to. | StringEcoResItemStyleName | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ToDateDate until which the record is valid. | DateToDate | No | None | |
UnitAppliesToAllYes/No flag that allows unit conversion, so the record can apply to other units. | EnumGUPUnitAppliesToAllNoYes (enum) | No | None | |
UnitIdUnit of measure the price or discount is given in. | StringUnitOfMeasureSymbol | No | None | |
WarehouseIdWarehouse the record applies to. | StringInventLocationId | No | None |
Indexes (1)
SalesTransactionIdIndexRetailPricingSimulatorTransactionIdNot unique.
Relations (6)
Each relation joins RetailPricingSimulatorPriceDiscTable to another table on the fields shown.
RetailPricingSimulatorSalesTransaction→RetailPricingSimulatorSalesTransactionJoin on
RetailPricingSimulatorTransactionId = RetailPricingSimulatorSalesTransaction.RecIdCardinality not set in the metadata.
GUPPricingRuleHeader→GUPPricingRuleJoin on
PricingRuleHeader = GUPPricingRule.RecIdZero or one RetailPricingSimulatorPriceDiscTable record → exactly one GUPPricingRule record
GUPPricingRuleLine→GUPPricingRuleJoin on
PricingRuleLine = GUPPricingRule.RecIdZero or one RetailPricingSimulatorPriceDiscTable record → exactly one GUPPricingRule record
GUPPriceComponentCodePriceAttributeGroupCombination→GUPPriceComponentCodePriceAttributeGroupCombinationJoin on
PriceComponentCombination = GUPPriceComponentCodePriceAttributeGroupCombination.RecIdZero or one RetailPricingSimulatorPriceDiscTable record → zero or one GUPPriceComponentCodePriceAttributeGroupCombination record
GUPCustPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Cust,relation = PriceType::PriceSales,PriceGroup = PriceDiscGroup.GroupIdMany RetailPricingSimulatorPriceDiscTable records → zero or one PriceDiscGroup record
GUPSalesPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::PriceSales,PriceGroup = PriceDiscGroup.GroupIdMany 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.