Skip to Content
Menú
This question has been flagged
1 Respondre
3379 Vistes

Hi all

i am trying to make overtime rule and get wrong python code

the rule
 result = (((contract.wage/30)/8)*0.25)*(inputs.OVERTIME_DAY_DAYS and inputs.OVERTIME_DAY_DAYS.amount)

 

Avatar
Descartar
Best Answer

I guess the problem is with this part: (inputs.OVERTIME_DAY_DAYS and inputs.OVERTIME_DAY_DAYS.amount).

Try to write it as: (bool(inputs.OVERTIME_DAY_DAYS.amount) and inputs.OVERTIME_DAY_DAYS.amount).

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de maig 22
3024
1
de maig 22
2573
1
de gen. 22
2314
1
d’oct. 21
14778
2
de gen. 24
14875