跳至內容
選單
此問題已被標幟
1 回覆
7620 瀏覽次數

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

頭像
捨棄
最佳答案

Hi DEVU

Try to give  python expression like below

result = (inputs.SALES.amount) * 0.02

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
8月 24
11552
1
5月 23
5286
0
2月 19
3539
0
3月 15
3676
0
3月 15
3644