Concept: AND and OR Setup for Boolean Calculations
You can use AND and OR logic to set up conditions that identify workers, such as:
- Worker EligibilityandSchedulingfields on theEffective Datedtab of theCreate EarningandCreate Deductiontasks.
- Selection Criteriafield for workers to process on theCreate Run Categorytask.
OR Conditions
To set up an OR condition, put each condition on a separate row. A worker must satisfy only 1 condition for the pay component or worker selection to resolve.
You want to resolve an earning for an allowance when a worker is either:
- Enrolled in a compensation plan.
- Has payroll input.
- Access theEdit Earningtask.
- Add 2 rows to theWorker Eligibilityfield.Click the plus sign to put each condition in a separate row.Worker EligibilityCompensation: Compensation Value Exists and <> 0Payroll Input Exists for Pay Component
AND Conditions
To set up an AND condition, keep all conditions in the same row. Workers must satisfy all criteria in the row for the pay component or worker selection criteria to resolve.
You want to resolve a deduction for an amount-based benefit deduction only if the deduction hasn't already resolved in a previous subperiod of the period.
- Access theEdit Deductiontask.
- Add 1 row to theWorker Eligibilityfield.Worker EligibilityBenefits: Employee Cost (Post-tax) Exists and <> 0Pay Component Not Previously Paid in Period