Re-factored get_payroll_leave_appication