arrow_back_ios

How are the pricing components calculated in detail?

You can apply multiple discounts and surcharges simultaneously. They are always calculated in the order they appear in the configuration, from top to bottom.
Let's examine the calculation in detail using an example. Suppose we have a sea tour:
The customer makes a reservation:
  • 2 adult tickets = 2 * 1000 = $2000
  • 3 children's tickets = 3 * 600 = $1800
  • 5 extra wetsuits = 5 * 100 = $500
  • Brings their own camera
In this case, the pricing components are applied in the following order:
  • 10% surcharge for bringing a camera
  • 50% discount on wetsuits
  • 40% holiday discount on the total cost
Before applying the discounts, the calculation table looks like this:
ElementCostCalculation
Adult ticket20002000
Children's ticket18001800
Wetsuit500500

10% surcharge for bringing a camera

For this pricing component, only price options are included in the calculation. This means the cost of the wetsuit is not considered when calculating the surcharge.
Calculation: 10% * (2000 + 1800) = $380.
The surcharge is distributed equally between the price options, $190 each.
ElementCostCalculation
Adult ticket20002190
Children's ticket18001990
Wetsuit500500
10% surcharge380-

50% discount on wetsuits

For this pricing component, only the wetsuit is included in the calculation. This means the cost of the price options is not considered when calculating this discount.
Calculation: 50% * 500 = $250.
The 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 based on the Calculation field (not the initial cost). This discount applies to all price options and fields. It must be distributed evenly among all these elements.
40% * (2190 + 1990 + 250) = $1772.
= 590.67 + 590.67 + 590.67
Subtract $590.67 from each element.
Start subtracting from the smallest element.
Wetsuit: 250 - 590.67 = -$340.67.
In this case, the wetsuit price is completely offset, and there are remaining funds to be redistributed. Let's recalculate the discount, taking these remaining funds into account.
590.67 + 590.67 + 340.67 = $1522.
= 761 + 761
This discount should now 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 calculation details are hidden.