Ir al contenido
Menú
Se marcó esta pregunta

In the payslip module there is a set of rules in which the module counts the period based on weekends and the schedule however. the company is working in a daily salary system internally based on the employee net salary not basic salary. so the daily salary would be Net/Num_of_days.

When an employee takes an unpaid leave it should use that value but in the module it always uses the value of days counting out the weekends. Should i extend the model and adjust the computations or there is a way to just adjust the configuration of the payroll module to make this work?

Avatar
Descartar
Mejor respuesta

Hi,


In Odoo Payroll, the default behavior calculates daily salary based on scheduled working days, automatically excluding weekends. For unpaid leave, deductions are computed using these scheduled days rather than the actual daily salary based on net pay. Your company requires daily salary to be calculated as net salary divided by the total number of calendar days, with unpaid leave deductions reflecting this value.


There is no standard configuration in Odoo to switch from scheduled days to calendar days for daily salary calculations. Adjustments like this require customization by extending the payroll models or overriding salary rules. By customizing the computation, you can ensure unpaid leave deductions are correctly based on net salary per day without affecting other payroll rules.


Hope it helps

Avatar
Descartar
Autor

Hello,

Thanks for the response i figured a work around.

Publicaciones relacionadas Respuestas Vistas Actividad
0
nov 23
2329
3
may 22
11691
2
jul 24
11382
0
may 16
3824
8
feb 24
13607