Yes, but it seems the problem is leaves_taken can easily be fooled, I cannot exactly say how this particular case has happened but try adding / deleting / canceling some holiday requests and soon your leaves_taken stays higher than the actual value.
I have not looked at v6 code enough to know if that is now solved or not but I know the holiday requests are far from 'user-proof'. Try for example duplicating a request (the state is duplicated as well leaving the workflow in an unusable state)
Yes, but it seems the problem is leaves_taken can easily be fooled, I cannot exactly say how this particular case has happened but try adding / deleting / canceling some holiday requests and soon your leaves_taken stays higher than the actual value.
I have not looked at v6 code enough to know if that is now solved or not but I know the holiday requests are far from 'user-proof'. Try for example duplicating a request (the state is duplicated as well leaving the workflow in an unusable state)