From time to time, sales reps will need to take time off work. This is easily handled by the leave application module (http://52.237.241.57/leaves). Sales Managers and Admins can create a new leave application by clicking the "add new leave" button and select the time period and sales rep on vacation.
When a sales rep applies for leave, the store visits on that day are pushed to another day based on the following business logic:
The number of visits in a day does not exceed the maxStopsPerDay parameter (by default, this is set to 15).
The day selected is not a public holiday or a leave day.
The visit is within the defined distanceRadius of another store.
A store will not been visited within the same week.