Bugfix: Let a pending request block only the days it lacks
Description
When the balance no longer covered a pending leave request, for example after HR corrected the balance, every further request of the same leave type was refused as not covered, even for days of another year the balance covered. The balance check now counts only the shortfall the new request adds to that of the pending ones.
Impact
Employees can request covered days while an uncovered request waits for its decision. The uncovered request is still refused when it is approved.