Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
4146 Vistas

Hello guys, well I modify the hr_holidays module for my personal use, I added a option if you select the same day You can calculate hours, then when the form is validated, this hours go to hr_employee, in the "HR Setting" tab.

When this hours in hr_employee are > 7.5, the hours are 0 and days are substracted 1.

My problem: the hours are converted to 0 and days are substracted 1 ONLY in one manager, this is so crazy! , in other managers and employees the days are 10... 12... never substracted


Could anyone help me? Thanks!

Avatar
Descartar
Autor Mejor respuesta

My problem is that the calculation is automatic when you validate a form about holidays, in this form you can choose days of holidays or hours of holidays, when is validated , this info (days or hours) are accumulated in other fields. But in the field of hours, when hours are > 7.5 the days must be substracted 1, but this only works in one user.

Avatar
Descartar
Mejor respuesta

Hi,

You can add special field in manager that will check when your calculation is done.

For example: in manager view add new field boolean Is special manager? if it is check then you have to subtract 1 in other case you have to do other calculation as per your requirement.

hope above will help you.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
jul 25
2764
0
sept 17
3517
0
jul 24
1377
1
may 24
1602
1
jun 23
2606