Bugs while making payroll entry


We are using ERPNext: v12.17.0 (version-12)

Frappe Framework: v12.14.0 (version-12)
While making payroll entry with checking option to validate attendance shows attendance was not marked even for the days an employee left the organization, also when an employee joins the organization in middle of the month.

Kindly assist with same.