Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
2506 Представления

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,

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
июн. 20
3755
0
мар. 15
3914
0
мая 23
3768
1
февр. 20
3953
1
мар. 18
4574