You can use several discounts and allowances simultaneously.
They are always calculated in the order of the configuration, from top to bottom.
Let's look at the calculation on an example. We have such a sea excursion:
The client made such a reservation:
- 2 tickets for adult fare = 2 * 1000 = $2000.
- 3 tickets at the child fare = 3 * 600 = $1800.
- 5 wetsuits in addition = 5 * 100 = $500.
- With my camera
In this case, pricing components are applied in the following order:
- A 10% surcharge for the tariff for the camera
- 50% discount on wetsuits
- 40% discount for the entire cost of the day of the Poseidon
Before the application of discounts, the following calculation is obtained:
This price component on the Applicability tab only lists tariffs.
This means that when calculating the surcharge, the cost of the wetsuit is not taken into account.
We calculate. 10% * (2000 + 1800) = $380.
The surcharge is distributed evenly between tariffs. At $190 to each.
And on the Applicability tab of this component, only a wetsuit is marked.
This means that when calculating discounts, tariffs are not taken into account.
We calculate. 50% * (500) = $250.
Discount applies only to a wetsuit.
Discounts and allowances are calculated not from the initial cost, but from the Calculation field.
This discount applies to all tariffs and fields.
It needs to be distributed evenly among these elements.
Calculate. 40% * (2190 + 1990 + 250) = $1772.
= 590.67 + 590.67 + 590.67
From each element you need to deduct $ 590.67.
We start subtracting from the smallest elements.
Wetsuit: 250 - 590.67 = $-340.67.
It turned out that the wetsuit paid off completely, and there were unspent funds.
Recalculate the discount taking into account these funds.
590.67 + 590.67 + 340.67 = $1522.
This discount should be distributed between the two remaining items, at $ 761.
Children's ticket: 1990 - 761 = $1229.
Adult ticket: 2190 - 761 = $1429.
Discount applies only to wetsuit.
As a result, all information from the second column is displayed in the account.
The calculations are hidden.