Leave balance does not updated correctly [solved]

Team and community,

I have a case where an employee submitted to leave requests. The balance in both leave requests show 30 days, which is fine. In one request he asked for 20 days, and in the other request he asked for 12 days.

I accepted his 20 days request, and I would expect that now the 2nd request will show a leave balance of 10 days and thus his application can’t be approved. Instead the 2nd leave request shows 30 days balance. I tried to refresh or change the dates, but still the balance is 10 days.

Please check this and rectify it.


Edit: Only when I change the status (draft to approved) and save, then the balance leave days gets update correctly.