Example: MULT

Input Conditions JSON Discount Calculation Flow

Unit of Measure = Percent, Amount

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 10$

  3. Calculation Method = Increase and Vat –10%

{
  "procedure": {
    "type": "MULT",
    "items": [
      {
        "calculationType": "structural" = 10%
      },
      {
        "calculationType": "contract" = 10$
      },
      {
        "calculationType": "vat" = -10%
      }
    ]
  }
}

Calculating discount according to the formula:

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

  2. 90 – 10 = 80$

  3. 80 * (1 – (–0.1)) = 88$

Total price for an Order Line Item = 88$

``