How to Create a Price List Simulation (Unity)

This example shows a how to create a simulation which uses a new pricing logic.

  1. Create a pricing logic:
    1. In Administration > Logics > Generic Logic, click the Add Logic button.
    2. Fill in the Name (PL_FinalPrice_base), Label, Valid After and Status fields. 
    3. Click on the logic name to open it for editing.
  2. Set up the calculation logic:
    1. Create a price element which will always return a value of 1000 (just as a test in this example). 


    2. Check that the logic's status is Active.
  3. Create a Price List:
    1. Go to Price Setting > Price Lists and click the New Price List button. 
    2. In the Select Products step, choose products for which you want to generate the Price List. (You may want to use a filter, so that the list of products is not too long for the sample run.)


  4. Associate the pricing logic with Price List.
    1. Go to the Set Parameters step.
    2. Fill in Price List Name.
    3. Select the Target Date – the date which will be used for looking up valid parameters. In this case we will take into account a pricing logic valid on Dec 1.
    4. Select your Default Pricing Logic. This logic will be used for product that have no assigned pricing logic. Only active logics are listed.
    5. Select your Result Price. It will show price elements from your selected default pricing logic. Since our pricing logic (PL_FinalPrice_base) has only one element, it is the only one that you can select.
    6. In the Output Elements section, check the FinalPrice checkbox to make the element visible on your generated Price List.
  5. Click the Create Price List button.
    Keep clicking the Refresh icon until your Price List has Status set to Ready.
  6. Check the Result Price:
    1. Click your Price List's name or ID to open the detail view.
      You have a Price List with prices generated for your products using your defined pricing logic.
  7. Submit your Price List and make sure it is in the Approved status. This means there must be a workflow logic for Price Lists defined and you must be an approver.
  8. Create two more pricing logics:
    1. Set their status as Simulation Only.
    2. Set the Valid After date to a later date than the previously created Calculation Logic.
    3. Edit the pricing logics.
    4. For each logic change the return value, so that you can easily distinguish which pricing logic was used for the generation of the Price List.


    5. The final setup should look like this: 
  9. Go to Price Setting > Price Setting Simulations.
    1. Create two new Simulations.
    2. In the Base Price List column, associate your Price List with the simulations.
    3. In the Simulation Set column, type the labels you have already used for your simulation Price List.
    4. Set the Target Date.

      (info) Be careful about the 'Valid After' date of both your active pricing logic and simulation pricing logic! The priorities are: 
      1. Latest Valid After date (i.e., if the date for simulation logic is sooner, it will not be taken into account when generating the simulation Price List, it would take the active one).
      2. If the Valid After dates are the same for active and simulation logics, then again the active one is used.
      3. If there is Simulation Set name set for the simulation pricing logic, then this one is used.
  10. Generate you Price List with the associated simulation logic:
    1. Select your simulation and click the Calculate button. 
    2. Keep refreshing until the status is Ready.
  11. Check the Result Price of the new (simulation) pricing logic:
    1. Click the ID or Label of the simulation to view the result price after applying a new (simulation) logic.


Found an issue in documentation? Write to us.