You need to divide payroll into four parts:
1. Employee details (token no., name, doj, designation, dept).
2. Days present in the month (including leaves/leave status must be shown).
3. Actual salary details (Basic, DA, HRA, Conv, Spl....).
4. Earned salary details (earnings of Basic + DA + HRA +.....) - Deductions like (PF + ESI + TDS + Professional Tax + G. insurance + loan + advance......) = Net salary.
This is only for an idea for you. If you have any specific payroll package, it is enough. If you need, I will send a copy to you. Email me at ksrinivas.hr@gmail.com.