Skip to Content
Menu
This question has been flagged
1 Atsakyti
3372 Rodiniai

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)

 

Portretas
Atmesti
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).

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
geg. 22
3020
1
geg. 22
2572
1
saus. 22
2310
1
spal. 21
14778
2
saus. 24
14874