Skip to Content
Menu
This question has been flagged
1 Odpoveď
7603 Zobrazenia

Hello everybody 

I am creating a salary rule to calculate a commission for employees

I added an input line for the salary rule with the name (Sales Total) and code (SALES)

Then I used python expression to calculate the result 

result = inputs.SALES * 0.02

But I am getting this error every time I try to calculate the salary sheet


Wrong python code defined for salary rule Sales Commission (COMMISSION).


any idea please?


Thank you

Avatar
Zrušiť
Best Answer

Hi DEVU

Try to give  python expression like below

result = (inputs.SALES.amount) * 0.02

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
aug 24
11525
1
máj 23
5274
0
feb 19
3516
0
mar 15
3673
0
mar 15
3627