Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
7589 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
серп. 24
11507
1
трав. 23
5264
0
лют. 19
3495
0
бер. 15
3663
0
бер. 15
3619