The employee will get an error while applying for leave “This leave cannot be availed post date. The leave has to be on or before today” when your company policy restricts the employee to apply for that particular leave for post date.
For example, if your organization would like to restrict the employee for applying for casual leave for the past date