How to show leave Balance in Salary slip according to there leave type ?
Check how it is implemented in Leave Application.