Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3364 Visninger

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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
maj 22
3018
1
maj 22
2568
1
jan. 22
2309
1
okt. 21
14775
2
jan. 24
14870