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

Can I use the  contract start date as condition in salary rules? To calculate the end of service of employee

So if the contract is less than 1 years this rules will appear?

The rule will be like


Today - contract.start_date > 1 year


Thanks

아바타
취소
베스트 답변

Hi,

Yes, you can use the contract start date as a condition in salary rules to calculate the end of service of an employee.You would typically achieve this using Python code within the salary rule.


time_difference = datetime.now() - contract.start_date

result = time_difference > relativedelta(years=1)


Hope it helps

아바타
취소

Thank you.

작성자 베스트 답변

thanks dear,

it dose work,

아바타
취소
관련 게시물 답글 화면 활동
0
6월 20
3930
0
3월 15
4121
0
5월 23
3955
1
2월 20
4110
1
3월 18
4743