Example: MAX

Input Conditions JSON Discount Calculation Flow

Unit of Measure = Amount

Calculation Method = Decrease

Product List Price = 100$

3 Calculation Types are created for the Pricing Procedure:

  1. Calculation Method = Decrease and Structural 10$

  2. Calculation Method = Decrease and Contract 20$

  3. Calculation Method = Increase and Promo 15$

{
  "procedure": {
    "type": "MAX",
    "items": [
      {
        "calculationType": "structural" = 10$
      },
      {
        "calculationType": "contract" = 20$
      },
      {
        "calculationType": "promo" = 15$
      }
    ]
  }
}

Calculating discounts and selecting the maximum discount according to the formula:

  1. 100 – 10 = 90$

  2. 100 – 20 = 80$

  3. 100 – 15 = 85$

Total price for an Order Line Item = 80$

``