BF:Fix leave counter and leave balance report (validated overtime requests increment the compensate entitled days).
ER:Separate JS code for create/edit leave request. The code is long and was duplicated.