Let's say you already have a resource with the rule of work.
For example, an hourly rental.
Now you need to create a new rule to determine the discount time.
Enter a Name, select a Color, and open the Working time tab.
Click + to add a period.
Enter the start and end time of the period.
In our case, we entered from 2:00 PM to 6:00 PM.
If the discount will be applied on the regular basis, than click on the Recurrence below.
Select the frequency.
For example, every day.
Go to the Rental intervals tab.
Select or enter manually intervals you need.
In our case, it's hourly.
Save the rule.
The created rule now has the lowest priority.
Therefore, it is overlapped by the old rule.
To change the priority, click the sorting icon.
Drag the rule to the right and save it.
Now create a pricing component for a discount. Click +.
Enter the name.
Disable the component so that it does not work in all rules.
We will only include it in our new rule.
Enter the formula '-10' and the '%'. Save it.
Now click on the intersection of the new rule and the component.
Enable the price component in this rule and save it.
The discount setup is complete. The configuration looks like this:
Customer calendar view:
The discount for the total amount is valid even if you booked at the intersection of the rules.
For example, from 10:00 AM to 3:00 PM.
You can make the discount apply only within the rule.
It will not work at intersections.
To do this, click on the first cell of the component to go to its settings.
Unset the Apply even if there are missing rental intervals checkbox and save it.
You can see this example in action: