تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
7594 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 24
11507
1
مايو 23
5269
0
فبراير 19
3498
0
مارس 15
3668
0
مارس 15
3621