Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5643 Представления

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

Related Posts Ответы Просмотры Активность
0
мая 22
3136
1
мая 22
2652
1
янв. 22
2336
1
окт. 21
14863
2
янв. 24
14980