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
|
5387 | |||
|
0
3月 15
|
5806 | |||
|
0
1月 26
|
1046 | |||
|
0
5月 23
|
5485 | |||
|
1
2月 20
|
5775 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.