Page 1 of 1

Reset Leave Entitlement

Posted: Wed Sep 02, 2020 4:53 pm
by orangehrm_1990

I was asked to create a job that will update the leave entitlement values when the leave period expires. For example I have set a leave period From June 1, 2020 To May 31, 2021. And added leave entitlements to a list of employees.

Come June 1, 2021 is it ok to update only the From and To of the existing records on the table? Or should I create another list of leave entitlements on the same employees, and just set the deleted column of the existing records to 1?

Re: Reset Leave Entitlement

Posted: Mon Sep 07, 2020 2:16 am
by rajitha
We recommend not to edit database tables since it may lead to internal errors. It's better to add entitlements through OrangeHRM web interface.