Set it up by adding the attendance in the set-up of earnings
1. Go to Payroll Tab then Paycodes
2. Search for the earnings or allowances that you want to add the attendance then click edit
3. In calculation type, select Calculated
4. In Earn/Deduct, select TK Deduct
5. In attendance, select the attendance to include in calculation of Earnings.
Note: You may opt to select all if you want to include all attendance.
6. Then save the changes made to earnings