コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
2553 ビュー

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
3799
0
3月 15
3983
0
5月 23
3806
1
2月 20
3980
1
3月 18
4627