Deducting from Regular Earnings

Sometimes, you need to reduce regular earnings by the number of hours paid by another earning element. When you pay leave using a leave earning element, those leave hours are paid instead of regular hours, so regular hours must be reduced.

You do this by using a formula to resolve the unit value of the REGPAY STDHR earnings element.

The REGPAY STDHR calculation rule is Unit × Rate, where:

Unit = ERN FM REGSTD UNIT

Rate = System element HOURLY RATE

The automatically assigned unit components of all the earnings that reduce regular hours are members of accumulator ERN AC REDUCE HRS. The delivered members are : SCK_UNIT, LSL_UNIT, OTHLV_UNIT, SHFNT2_UNIT, ANNRA_UNIT, ANN_UNIT, PUB_UNIT, and LWOP_UNIT.

The period total units from the accumulator are subtracted from the calculated regular standard hour units for the period.

Here is the process that ERN FM REGSTD UNIT uses to resolve the unit for the REGPAY STDHR earnings element (the last line reduces the regular earnings by the value of the accumulator):

  1. Obtains the payee's standard hours frequency from the Job record.

  2. Retrieves the annual factor for the employee's standard hours frequency; for example, annual frequency 52 for 40 standard hours per week.

  3. Multiplies the employee's standard hours by the annual factor (annualization).

  4. Retrieves the pay period frequency.

  5. Obtains the annual factor.

  6. Divides the annualized standard hours (step 3) by the annual factor (deannualization).

  7. Subtracts the value of ERN AC REDUCE HRS.

The last line of the formula covers steps 6 and 7:

GP TEMP001 NUM / AUS VR ANNL FCTR − ERN AC REDUCE HRS >> ERN FM REGSTD UNIT