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

Hi

i want to know what is wrong in this rule

if employee.place_of_birth == 'egypt' :
result = contract.wage * 0.10

i want to make rule processed if the employee ( place of birth ) egypt

what can i do to solve this mistake

아바타
취소
베스트 답변

Create new rule : 

in Condition Based on : Python Experssion 

Python Condition : SET_YOUR_CONDITION_HERE ''' result = employee.place_of_birth == 'egypt' or false '''

 

아바타
취소
작성자

@sameer thanks for ur replay but i created rule like this : Condition based on result = employee.place_of_birth == 'egypt' or false and the rule is result=-contract.wage*0.07 but it give me Wrong python condition defined for salary rule employee.

The condition and rule are totally correct , i use it before and work perfectly . you have to check the salary structure if there is any wrong .

작성자

@sameer Can u post ur rule to compare with my rule

condition is =>> result = employee.marital == 'single' or false rule ==>> result=contract.wage*0.7

작성자

Thanks sameer it works fine

관련 게시물 답글 화면 활동
0
5월 22
3260
1
5월 22
2715
1
1월 22
2402
1
10월 21
14997
2
1월 24
15093