Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7587 มุมมอง

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
11506
1
พ.ค. 23
5262
0
ก.พ. 19
3494
0
มี.ค. 15
3660
0
มี.ค. 15
3618