Error when validating the days of payment in entry to payroll

Hello, I am using the Human Resources module and in my case when creating the payroll I observe that it does not validate the attendance correctly.

Attendance from an employee
Month april
Present: 19 days
Absent: 5 days
Holidays and Sundays: 6

Salary Structure


Salary structure assignment

Before creating pay stubs



As can be seen, even though the employee has 5 absences, he is not subtracting them from the pay days.

Version de ERP

Is there an option that you are ignoring or what solution could you give it?