Define New Pricing Strategy

The Company Parameter StrategyDefinition contains a list of pricing strategies that are available in the price setting package, along with details about the strategic hierarchy and calculation engine.

Let’s explain some of fields:

  • Level – When you create a new pricing strategy, you must consider the level that the strategy will operate at. In the StrategyDefinition parameter you can see that all the Pricing Strategies have two levels – Independent for global scope and Dependent level for regions, countries or even branches set in your hierarchy. However, which levels are dependent and independent depends on how you build the hierarchy.

  • Calculation Engine – This is an attribute of the Pricing Strategy where we have existing Calculation Engines, such as AnchorEngine, CompetitionEngine etc. All of them are listed in Calculation Engines. In other words, this is the name of the engine which is a link to the PSP_EngineCalculationConfig CP where the path to the engine is specified.

  • For more details, see Strategy Definition parameter.

To define the new strategy:

  1. Find the Company Parameter StrategyDefinition and add a new record to define a new strategy:

    • Set Strategy Name as TrainingCost+ (mandatory field).

    • Set Level to Parent (mandatory field).

    • Set the Calculation Engine to TrainingCost+.

ảnh-20240329-070931.png
  1. Find the Company Parameter PSP_EngineCalculationConfig and add a new record to define a new strategy implementation in Groovy library. For more details, see Engine Calculator Library (Pricefx internal page).

    • Set Engine Name as TrainingCost+ (mandatory field).

    • Set Calculation Engine Path to a path to locate your method, i.e., set it to "libs.TrainingCalculationEngineLib.TrainingEngine.calculatePrice". This is the same pattern which is used in Groovy logic when you call a library method.

    • Set Engine Calculation Parameters to parameters needed to calculate prices in your method.

ảnh-20240329-071648.png