Introduction
Many a times there is a need that we would not want to allow any changes to be made on Approved Historical Absences.
Meaning of Approved Historical Absence
An absence transaction which has an end-date prior to current system date and has already been approved is referred to as a Approved Historical Absence
For Example, considering today’s date (31-May-2020) as current system date:
Absence Booked From 03-May-2020 To 04-May-2020 and unapproved is not a Approved Historical Absence.
Absence Booked From 03-May-2020 To 04-May-2020 and approved is Approved Historical Absence.
Absence Booked From 29-May-2020 to 01-Jun-2020 and approved is not a Approved Historical Absence.
Absence Booked From 29-May-2020 to 01-Jun-2020 and not approved is not a Approved Historical Absence.
As per the above table our intent is to ensure that we get an error message if we try to make changes in scenario 2, in all other cases changes should be allowed.
We will demonstrate how we can achieve the same.
Worked-Out Example
We need to ensure we already have a Absence Type present in the system on which we can apply the new condition. For this example we will use “Special Vacation Leave” Absence Type.
We will also need to create a Custom Error Message.
Navigation: Setup And Maintenance -> Manage Messages (Create)
Also we would need to create a Custom Fast Formula . Details of Formula are given below:
As a next step, we will attach this new formula to Validation formula section of “Special Vacation Leave”.
And with this we have completed the configuration piece. We can now record some absences and check application behaviour.
Verification
We have already recorded two absence for an employee and they have the following status:
As per the business requirement we should be able to make changes to the “In Progress” Absence transaction. We would add a comment “May extend for one more day” and try to submit.
We would try to add the same comment on the Historical Approved Absence and here we should not be able to make any change.
Summary
So this is how we can restrict any edits/changes to be made on Approved Historical Absence. One may try and extend this to ensure that this restriction only applies to Employees and Line Managers but not to HR Administrators.
Comments
Bookmarked. Kindly additionally consult with my web site =).
We may have a link change arrangement among us
RSS feed for comments to this post