콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
7599 화면

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
8월 24
11510
1
5월 23
5271
0
2월 19
3513
0
3월 15
3672
0
3월 15
3621