How allocate leave based on company using Leave Allocation tool

I want to allocate leave based on company as I want different leaves to allocated to employees registered in different companies. Please help.