I've added a custom field called Friday Overtime(friday_ot) in the attendance, rendered with the widget "float_time". Then in the payslips, I've got a field that shows the total Friday overtime over a given range (this is achieved through onchange).
Now, the problem is that for a certain employee who has 25 attendances over February, two of those records have Friday overtime with values 9:30 and 9:40 hours. So, the total should be 19:10 right ?, but now it's coming as 19:11. I don't know why this happens..Any Ideas? Thanks in Advance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
Hi,
its because odoo uses float fields to compute the sum of times. in this case, 9:30 is considered as 9.5 and 9:40 as 9.66 and sum will be 19.11 instead of 19:10.
The sum is 19.11 on which I'm applying widget float_time, which should convert it to the correct hours ie., 19:10. Besides, adding two durations 9 hours 30 mins and 9 hours 40 mins should be 19 hours and 10 mins. Can you help me find where exactly it is messing up the calculations?
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
0
abr. 15
|
3677 | ||
|
0
set. 23
|
2488 | ||
|
1
mai. 24
|
3496 | ||
|
0
jan. 23
|
1784 | ||
|
2
mar. 21
|
4378 |