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

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

Hi DEVU

Try to give  python expression like below

result = (inputs.SALES.amount) * 0.02

Avatar
Discard
Related Posts Replies Views Activity
2
Aug 24
12179
1
May 23
5821
0
Feb 19
3906
0
Mar 15
4088
0
Mar 15
4094