Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3359 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
0
mai 22
3017
1
mai 22
2566
1
janv. 22
2308
1
oct. 21
14774
2
janv. 24
14870