Table

GUPRetailPricingSimulatorDiscountLine

Periodic discount line

Holds periodic discount lines used by the retail pricing simulator. Each line links to a simulator sales transaction, a discount, a pricing rule and a price attribute group combination. It has no defined key.

Table name
GUPRetailPricingSimulatorDiscountLine
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
GlobalUnifiedPricing

Fields (21)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
discAmountThe cash amount taken off as discount.Real
DiscAmount
NoNone
DiscountLineRecIdSystem record ID of the discount line. No label or relation is given.low confidenceInt64
RecId
YesNone
discountMethodThe calculation type of the discount: percentage off, amount off or unit price.Enum
RetailDiscountOfferLineDiscountMethod
RetailDiscountOfferLineDiscMethodBase (enum)
NoNone
discPctThe percentage taken off the price.Real
RetailPriceDiscPct
NoNone
LineNumThe number of the line.Real
LineNum
NoNone
LinePricingGroupCodeShows whether the line applies to a group or to all.Enum
GUPPricingAttributeGroupCodeLine
GUPGroupAll (enum)
NoNone
LinePricingRuleThe pricing rule record this line refers to.Int64
GUPRefRecId
NoGUPPricingRule.RecIdNone
LineTypeShows whether the line is included in or excluded from the discount.Enum
RetailDiscountLineType
RetailDiscountLineIncludeExcludeTypeBase (enum)
NoNone
OfferIdThe ID of the periodic discount the line belongs to.String (20)
RetailOfferIdEx3
YesNone
offerPriceThe unit price offered on the line.Real
RetailOfferPrice
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PriceAttributeGroupCombinationRecIdThe price attribute group combination linked to the line.Int64
RecId
NoGUPPriceComponentCodePriceAttributeGroupCombination.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
RetailPricingSimulatorDiscountReference to the simulator discount record that owns the line. No relation is given.Int64
RefRecId
NoNone
RetailPricingSimulatorTransactionIdThe pricing simulator sales transaction header this line refers to.Int64
RefRecId
NoRetailPricingSimulatorSalesTransaction.RecIdNone
SelectedYes/No flag that marks whether the line is selected.Enum
NoYesId
NoYes (enum)
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
UnitOfMeasureThe unit of measure for the line, held as a record ID.Int64
UnitOfMeasureRecId
NoNone

Indexes (3)

Relations (4)

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

  • RetailPricingSimulatorSalesTransaction → RetailPricingSimulatorSalesTransaction

    Join on RetailPricingSimulatorTransactionId = RetailPricingSimulatorSalesTransaction.RecId

    Cardinality not set in the metadata.

  • GUPPricingRuleLine → GUPPricingRule

    Join on LinePricingRule = GUPPricingRule.RecId

    Zero or one GUPRetailPricingSimulatorDiscountLine record → exactly one GUPPricingRule record

  • GUPPriceComponentCodePriceAttributeGroupCombination → GUPPriceComponentCodePriceAttributeGroupCombination

    Join on PriceAttributeGroupCombinationRecId = GUPPriceComponentCodePriceAttributeGroupCombination.RecId

    Many GUPRetailPricingSimulatorDiscountLine records → exactly one GUPPriceComponentCodePriceAttributeGroupCombination record

  • OfferId → RetailPricingSimulatorDiscount

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

    Many GUPRetailPricingSimulatorDiscountLine records → exactly one RetailPricingSimulatorDiscount record

Get this data out

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

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

Email sales@drdynamics.co.uk