Example: isIgnoreNulls

Input Conditions JSON Discount Calculation Flow

Unit of Measure = Percent

Calculation Method = Decrease

isIgnoreNull = false

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 = Decrease and Promo 0%

{
  "procedure": {
    "type": "MIN",
    "isIgnoreNulls": "false",
    "items": [
      {
        "calculationType": "structural" = 10%
      },
      {
        "calculationType": "contract" = 20%
      },
      {
        "calculationType": "promo" = 0%
      }
    ]
  }
}

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

  1. 100 * (1 – 0.1) = 90$

  2. 100 * (1 – 0.20) = 80$

  3. 100 * (1 – 0) = 100$

Total price for an Order Line Item = 100$

``