V13 - Absent to deduct leave first then deduct salary

Hi,

Is it possible that to make a setup whereby when an employee is absent in a month (based on attendance), first system deducts the number of absent days from his/her leaves and if sufficient balance is not available in leaves then deduct salary treating it as leave without pay.

Looking forward to guidance.

Do you have only two types of leave? Leave type can be annual leave, sick leave, casual leave , maternity/paternity leave, leave without pay etc right?

Yes it can be but the point here is that if someone is appearing absent (that is hasn’t marked attendance nor applied for leave) can there be a setup that the system deducts a leave against the absent and then only if leaves are exhausted then deduct salary.

any update on this ?