Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
8088 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hi DEVU

Try to give  python expression like below

result = (inputs.SALES.amount) * 0.02

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sie 24
12187
1
maj 23
5836
0
lut 19
3909
0
mar 15
4095
0
mar 15
4099