Salary calculation with Holidays

We are a MSME based at Chennai.
We are moving to payroll module from this year.

  1. We have setup holiday list including sundays (holidays are covered as payment days)
  2. Include holidays in Total no. of Working Days (Checked)
  3. Consider Unmarked Attendance As (Absent)
  4. But with this above setting. Sundays (holidays) are calculated as unmarked (absent)

So in my case the salary is calculated expect Sundays.
In Alternate if i make Unmarked as Present it works (suppose if a employee joins from middle it counts unmarked as present)

So is there any workaround to include only days listed in holidays list of the employee as counted as payment days for calculations.

Request your help.
Thank you.