arrow_back_ios

How are the pricing components calculated in detail?

You can use several discounts and surcharges at the same time. They are always calculated in order of their position in the configuration, from top to bottom.
Let's look at the calculation in details using an example. Let's say we have a sea tour:
The customer made a reservation:
  • 2 tickets for adults = 2 * 1000 = $2000.
  • 3 tickets for children = 3 * 600 = $1800.
  • 5 extra wetsuits = 5 * 100 = $500.
  • With his camera
In this case, the pricing components are applied in the following order:
  • 10% surcharge on the camera price
  • 50% discount on wetsuits
  • 40% holiday discount on the total cost.
Before we will apply the discounts, we have this table of calculation:
ElementCostCalculation
Adult ticket20002000
Children's ticket18001800
Wetsuit500500

10% surcharge on the camera price

For this price component, only price options are used in calculation. This means that the cost of the wetsuit is not taken into account when calculating the surcharge.
We calculate. 10% * (2000 + 1800) = $380.
The surcharge is distributed evenly between price options. For $190 each.
ElementCostCalculation
Adult ticket20002190
Children's ticket18001990
Wetsuit500500
10% surcharge380-

50% discount on wetsuits

For this price component, conversely, only the wetsuit is used in calculation. This means that the cost of the price options is not taken into account when calculating this surcharge.
Let's calculate: 50% * (500) = $250.
Discount applies only to the wetsuit.
ElementCostCalculation
Adult ticket20002190
Children's ticket18001990
Wetsuits500250
10% surcharge380-
50% discount-250-

40% discount on the total cost

Discounts and surcharges are calculated from the Calculation field (not from the initial cost). This discount applies to all price options and fields. It needs to be distributed evenly among all these elements.
40% * (2190 + 1990 + 250) = $1772.
= 590.67 + 590.67 + 590.67
You need to subtract $590.67 from each element.
We start subtracting from the smallest elements.
Wetsuit: 250 - 590.67 = -$340.67.
It turned out that the wetsuit price was overlapped completely, and there are unspent funds left. Let's recalculate the discount taking into account these funds.
590.67 + 590.67 + 340.67 = $1522.
= 761 + 761
This discount should be distributed between the two remaining items.
Children's ticket: 1990 - 761 = $1229.
Adult ticket: 2190 - 761 = $1429.
ElementCostCalculation
Adult ticket20001429
Children's ticket18001229
Wetsuit5000
10% surcharge380-
50% discount-250-
40% discount-1772-
Amount26582658
As a result, the invoice displays all the information from the second column. The calculations are hidden.