Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2396 Vistas


i'm an admin user in my company and i enroll check in & out manually for my team on Odoo 11 but it didn't appear in payroll so 1- how can i make pay roll pending on actual attendance ?

2- how to make salary rule pending on number of actual attendance in the company ?


Avatar
Descartar

If you are looking to deduct the salary based on the leaves, you can follow what jithin has explained in answer, see the video illustration of it: https://www.youtube.com/watch?v=Drr4tDzmsbg

Mejor respuesta

Hi Eslam Ahmed, Try like below:

Create salary rule to deduct unpaid leaves pay from payslip.
 payroll -> salaryrules -> create,  add new rule
 - select a rule category:deductions
 - Computation : Python Code.

Python Code :

#Our Computation code to calculate amount In case of 31 days
try:
result =-(contract.wage/31) * worked_days.Unpaid.number_of_days
except:
result = 0
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
jul 24
2682
1
jun 24
5142
1
oct 23
10852
1
oct 23
98
1
ago 23
2193