Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
8048 Vistas

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
Mejor respuesta

Hi DEVU

Try to give  python expression like below

result = (inputs.SALES.amount) * 0.02

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
ago 24
12175
1
may 23
5798
0
feb 19
3897
0
mar 15
4085
0
mar 15
4093