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
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.
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
0
6월 20
|
5391 | |||
|
0
3월 15
|
5855 | |||
|
0
1월 26
|
1051 | |||
|
0
5월 23
|
5501 | |||
|
1
2월 20
|
5782 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.