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

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
Opusti
Best Answer

Hi DEVU

Try to give  python expression like below

result = (inputs.SALES.amount) * 0.02

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
avg. 24
11526
1
maj 23
5275
0
feb. 19
3517
0
mar. 15
3673
0
mar. 15
3627