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

Having problem with the condition based on in salary rule when creating payroll my problem is that if i write any condition in the (condition based on section) this condition must be achieved otherwise the rule won't work and give me an error like for example.

To calculate the sick days for employees to shown in their pay slips  wrote this code in the COMPUTATION  panel and it work very fine only if the employee have sick leave but it won't work with the employee who don't have sick days it gives error. 

the code is:


result = worked_days['LEAVE110'] and worked_days['LEAVE110'].number_of_days


the problem comes from the condition panel i can't choose (always true) as i want to calculate this only if the employee have sick leave other wise i don't want to calculate this rule

would you plz help me with condition base on panel 

what should i write? 



아바타
취소
베스트 답변

Hi,You can set a Python condition to apply this rule. The screenshot below provides an example of how to set condition for applying rules in payslips.


Hope it helps

아바타
취소
작성자

Thanks so much it works very well

관련 게시물 답글 화면 활동
1
10월 24
1433
5
8월 24
3080
2
8월 22
2309
2
7월 19
4026
2
3월 15
5714