Element Skip Formula Type

If your payroll policies require conditional processing of an element, you can write a formula to define when the run should process the element, and when it should skip it.

For example, your formula can specify to process the Union Fees element in every run, unless the Union_Fees_Paid balance is greater than 10,000.

Your skip rule formula must be consistent with other processing rules defined for the element, such as frequency rules, which determine in which period the element is normally processed. A skip rule cannot contravene any other processing rules in place for the element. You can associate only one element skip rule formula with each element. You must write and validate the formula before you define the element, so that you can select the formula from a list on the Element window.

Here's how you can write a formula defining a skip rule:
  1. Select the Element Skip formula type in the Formulas window.

    The formula must set and return a local variable of type text, and named as skip_flag.

    The following example of a skip rule formula defines that the Union Fees element isn't processed if the Union_Fees balance is greater than or equal to 10,000:
    DEFAULT FOR UNION_FEES_REL_NOCB_YTD IS 0
     
    l_amount = 0
    l_amount = UNION_FEES_REL_NOCB_YTD
     
    SKIP_FLAG = 'N'
     IF l_amount >= 10000 THEN
      (
       SKIP_FLAG = 'Y'
      )
     RETURN SKIP_FLAG
  2. Associate this formula to the element in the Skip Formula field.