Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
7617 Visualizzazioni

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
Abbandona
Risposta migliore

Hi DEVU

Try to give  python expression like below

result = (inputs.SALES.amount) * 0.02

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
ago 24
11550
1
mag 23
5285
0
feb 19
3532
0
mar 15
3676
0
mar 15
3641