When the "Pay Calendar" is incorrectly set up, the "Month End" and "Year-End" processes can fail and cause record Locks, However, data is not affected. We need to add the following validation to the Pay calendar: The purpose of this validation is to ensure that the calendar for all periods that the employee started is properly setup.
This is used in the month/year rollover process to carry forward leave. Calendar rules: 1. "Start Date" must be the first day of the month. 2. "End Date" must be the last day of the month. 3. Next period "Start Date" must be 1 day after the current period "End Date". 4. All years in the pay calendar needs to be valid.
As part of the upgrade, we need to add a correction script to correct the pay calendar if it is invalid. |