Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3362 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
maj 22
3017
1
maj 22
2566
1
jan. 22
2308
1
okt. 21
14774
2
jan. 24
14870