Feature: Restrict leave in busy periods 

Description 

HR defines restricted periods for the company, for departments with their sub-departments or for locations, and for all or the listed leave types; sickness is never restricted. A period either refuses requests with a day in it, telling the employee its name and reason, or lets HR decide after the usual approvers, and alone where the rules need no approval. Nobody is exempt by role: HR overrides a period only explicitly, which the request keeps. Approved requests stay as they are when a period is added; a pending one is refused at approval if a blocking period now covers it.

The API offers listRestrictedPeriods, createRestrictedPeriod, getRestrictedPeriod, updateRestrictedPeriod and deleteRestrictedPeriod.

Impact 

New tables hold the restricted periods and their scope.