Skip to Content
Menú
This question has been flagged
1 Respondre
7612 Vistes

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

Hi DEVU

Try to give  python expression like below

result = (inputs.SALES.amount) * 0.02

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
d’ag. 24
11544
1
de maig 23
5283
0
de febr. 19
3530
0
de març 15
3674
0
de març 15
3639