Deduction of Leave Without Pay doesn’t work

Hello,
Can anyone help? I am facing the “Deduction of Leave Without Pay doesn’t work” scenario.
I tried three-way to deduct leave without pay from total earnings in the salary slip, but it doesn’t work.

  1. There is a way of checking “Validate Attendance” while doing payroll entry.
  2. Second way is a set the earning component as “Depends on Payment Days”
    If anyone has another way to solve it, then please guide me.