Skip to Content
Menu
This question has been flagged
1 Reply
3389 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
0
May 22
3040
1
May 22
2582
1
Jan 22
2317
1
Oct 21
14782
2
Jan 24
14890