Example: Set Up Parental Leave
In your country, couples can take a total 480 days of paid leave per child, with each parent entitled to 240 days of leave. Parents of multiples, such as twins, can take an additional 180 days per additional child. Single parents can use the entire amount granted to couples.
Parents can take an unlimited number of days of parental leave in a year, as long as they don't exceed the total entitlement. Parents can take parental leave anytime from 60 days before the child's delivery date up until the child's eighth birthday. They can divide up their entitlement into multiple leave requests.
You need to create a leave type that:
- Grants parents the amount of leave appropriate to their situation.
- Has a balance calendar that begins on the first day of leave and ends on the child's eighth birthday.
- Can support multiple leave request events.
- Validates that the first day of leave isn't more than 60 days before the birth date (expected due date).
Security:
- Custom Field Managementdomain in System functional area.
- Set Up: Leave of Absencedomain in Time Off and Leave functional area.
- Create a condition for parent employees who aren't single.
- Access theCreate Calculated Fieldtask.
- As you complete the task, consider:FieldValueField NameSingle Parent is FalseBusiness ObjectLeave Request EventFunctionTrue/False ConditionFieldSingle Parent IndicatorOperatorequal toComparison TypeValue specified in this filterComparison ValueLeave unchecked.
- On theAdditional Infotab, select theLeave of AbsenceCategory.
- Create a condition for employees who are single parents.
- Access theCreate Calculated Fieldtask.
- As you complete the task, consider:FieldValueField NameSingle Parent is TrueBusiness ObjectLeave Request EventFunctionTrue/False ConditionFieldSingle Parent IndicatorOperatorequal toComparison TypeValue specified in this filterComparison ValueCheck this box.
- On theAdditional Infotab, select theLeave of Absencecategory.
- Create a numeric constant that returns 180.
- Access theCreate Calculated Fieldtask.
- As you complete the task, consider:FieldValueField Name180Business ObjectLeave Request EventFunctionNumeric ConstantNumeric Constant180
- On theAdditional Infotab, select theLeave of AbsenceCategory.
- Create an arithmetic calculation that calculates the entitlement per additional child, multiplied by the number of additional children.
- Access theCreate Calculated Fieldtask.
- As you complete the task, consider:FieldValueField Name180 * (Number of babies -1)Business ObjectLeave Request EventFunctionArithmetic Calculation
- Define theArithmetic Expression:(Field)Operator180* (Multiply)(Number of Babies/Adopted Children- (Subtract)1)
- On theAdditional Infotab, select theLeave of AbsenceCategory.
- Create a numeric constant that returns 240.
- Access theCreate Calculated Fieldtask.
- As you complete the task, consider:FieldValueField Name240Business ObjectLeave Request EventFunctionNumeric ConstantNumeric Constant240
- On theAdditional Infotab, select theLeave of AbsenceCategory.
- Create a numeric constant that returns 480.
- Access theCreate Calculated Fieldtask.
- As you complete the task, consider:FieldValueField Name480Business ObjectLeave Request EventFunctionNumeric ConstantNumeric Constant480
- On theAdditional Infotab, select theLeave of AbsenceCategory.
- Create an arithmetic calculation that calculates the total entitlement for a parent employee who isn't single.
- Access theCreate Calculated Fieldtask.
- As you complete the task, consider:FieldValueField Name240 + (180 * (Number of babies - 1))Business ObjectLeave Request EventFunctionArithmetic Calculation
- Define theArithmetic Expression:FieldOperator240+ (Add)180 * (Number of babies - 1)
- On theAdditional Infotab, select theLeave of AbsenceCategory.
- Create an arithmetic calculation that calculates the total entitlement for an employee who is a single parent.
- Access theCreate Calculated Fieldtask.
- As you complete the task, consider:FieldValueField Name480 + (180 * (Number of babies - 1))Business ObjectLeave Request EventFunctionArithmetic Calculation
- Define theArithmetic Expression:FieldOperator480+ (Add)180 * (Number of babies - 1)
- On theAdditional Infotab, select theLeave of AbsenceCategory.
- Create a calculated field that returns an employee's total entitlement based on their parental status (single or not single).
- Access theCreate Calculated Fieldtask.
- As you complete the task, consider:FieldValueField NameParental EntitlementBusiness ObjectLeave Request EventFunctionEvaluate ExpressionField TypeNumericDefault Value0
- Enter these conditions and values:ConditionReturn Value if Condition is TrueSingle Parent is False240 + (180 * (Number of babies - 1))Single Parent is True480 + (180 * (Number of babies - 1))
- On theAdditional Infotab, select theLeave of AbsenceCategory.
- Create a calculated field that calculates the end date for the balance calendar.
- Access theCreate Calculated Fieldtask.
- As you complete the task, consider:FieldValueField NameChild's Birth Date + 8 YearsBusiness ObjectLeave Request EventFunctionIncrement or Decrement DateDate FieldChild's Birth DateYears to Add or Subtract8Days to Add or Subtract-1Return Blank Date on ErrorCheck this box
- On theAdditional Infotab, select theLeave of AbsenceCategory.
- Configure the leave type.
- Access theCreate Leave Typetask.
- Select theCountry/Country Regionto which this leave type applies.
- On theValidations/Supporting Datatab, add a leave of absence rule that the start date occurs not more than 60 days before the child's expected due date.
- On theBalance/Leave Takentab:FieldOptionTrack BalanceSelect this check box.Balance Calendar Start DateLeave Balance Calendar - Effective Date (First Day of Leave)Balance Calendar End DateChild's Birth Date + 8 YearsUnit of TimeDaysEntitlement per EventSelect this check boxEntitlement Units (calculation)Parental Entitlement
- On theAdditional Fieldstab, add these additional fields:
- Child's Birth Date(make this field required).
- Number of Babies/Adopted Children(make this field required).
- Single Parent Indicator.
Employees enter this information when they request parental leave:
- Child's birth date.
- Number of children.
- Whether the employee is a single parent.
- Their total entitlement based on whether they’re a single parent and the number of children in this event.
- The start and end dates of their balance calendar based on the child's birth date.