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:
Element | Cost | Calculation |
Adult ticket | 2000 | 2000 |
Children's ticket | 1800 | 1800 |
Wetsuit | 500 | 500 |
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.
Element | Cost | Calculation |
Adult ticket | 2000 | 2190 |
Children's ticket | 1800 | 1990 |
Wetsuit | 500 | 500 |
10% surcharge | 380 | - |
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.
Element | Cost | Calculation |
Adult ticket | 2000 | 2190 |
Children's ticket | 1800 | 1990 |
Wetsuits | 500 | 250 |
10% surcharge | 380 | - |
50% discount | -250 | - |
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.
Element | Cost | Calculation |
Adult ticket | 2000 | 1429 |
Children's ticket | 1800 | 1229 |
Wetsuit | 500 | 0 |
10% surcharge | 380 | - |
50% discount | -250 | - |
40% discount | -1772 | - |
Amount | 2658 | 2658 |
As a result, the invoice displays all the information from the second column. The calculation details are hidden.