Salary slip does not calculate absent days

Hello, I created a salary slip based on payroll entry for one employee who was absent for 4 days this month. However, the salary slip shows that the absent days number is 0. Even I’m sure about the days. Why is that?


I had to change the payroll settings as shown:

You have to create a Leave Application as Leave Without Pay (LWP) for that employee if you want to deduct from him