HR wants to pay the employee’s salary in advance in case he takes a vacation.
The employee will be on vacation from January 5, 2025, to April 5, 2025.
Therefore, the employee should receive his salary in advance along with the rest of his leave balance as leave encashment.
I have proposed the following solutions:
- Create an employee advance and deduct it from the salary, then create an additional salary based on the employee advance. However, this workaround is not acceptable to the customer, as the additional salary deducts the full amount from the salary slip, resulting in a zero balance.
I suggested for him create additional salary Is Recurring and adjust the amount, to balance the employee salary with zero amount and create another additional salary to deduct the reast of the amount., this solutions is rejected from the HR as the HR has to follow Mutiple steps. - Create a payroll entry for each month. This solution was also rejected by HR because the employee should have 5 days from April. I suggested adding it as additional salary in the March payroll and deducting it in April, but this was also rejected.
- Create a loan with the employee advance, but this will not adjust the five days in April.
all of these workaround not working for the customer needs, so i create clint script to chck the attendance and calauctee deduction for all the attendance with on leave status, but the clint scrpit not working with the creation of the salary slip, works only if i editi any filed in the salary slip also the amount calculation is not accurate