Discussions
Double Leave
Hi Team,
I'm contacting you to have some details on your BambooHR - Humanity Leave synch.
I know that Bamboo can book one person for 2 different leave types at the same time (e.g. Holidays + part time) and Humanity is not allowing this.
I know, it’s weird that someone will book holidays during their weekly day off (a part time employee will be off for example every Monday).
This is the case, tho, if someone will book 3 weeks of holidays: s/he won’t separate them because of his/her weekly day off, but simply s/he will book everything at once.
Bamboo is allowing this.
Humanity no.
What I'm doing is to manually enter the weekly day off into the leaves in humanity as part time leaves. On top, I'm using the create leaves and approve leaves API call:
Create leave using the above POST with proper employee, start and end date and leave type
https://www.humanity.com/api/v2/leaves
And also approving the Leave with the below PUT
https://www.humanity.com/api/v2/leaves/leave_id
This does not work if the dates are overlapping with a part time day off.
This is not an issue if the part time is in the middle (we could just ignore this) but what if someone has 2 part time days off and s/he is booking holidays (for example) til Thursday and s/he has part time Thursday and Friday?
What I’m asking you is: how did you guys deal with this problem in your own synch? How did you manage to create a BambooHR-Humanity synch that works even if Bamboo is allowing overlapping Leave types and Humanity is not?