How do I create an autocomplete rule to set a default final close date for employees with terminated employment?
Here's an example of an autocomplete rule that defaults the final close date to a static date. This default date is valid for all employees with terminated employment, across the enterprise.
Here's an example of an autocomplete rule that defaults the final close date to a dynamic date. This default date is derived based on the employment termination date + n days.
An
HcmParam
global function isn’t available to directly get the
termination date. So, you need to derive the termination date in the rule through
the following logic:- Get all the
hrAssignRow
variables for the given payroll assignment. - For each
hrAssignRow
variable, check if the row is inactive. - If it's inactive, find the row related to the
actionCode
variable. - If the
actionCode
variable is EMPL_TERMINATE, derive the value of theterminationDate
variable ashrAssignRow.EfectiveStartDate -1
.