PR_FLSA_SAMPLE_USERCALC

PR - FLSA Adjustment#

Requirement
Employees are paid FLSA for all time worked over 40 hours only if they worked more than 45 hours, otherwise they just receive their normal salary (no overtime paid). This means that if the employee works for 44 hours they get no additional pay, but if they work for 46 hours they get 6 hours of overtime. FLSA is set up to pay over 40 hours and a UserCalc will determine if there needs to be an adjustment or not.
Statement
If the hours worked are greater than 40 but less than 45, let the Adjust FLSA Hours PC 112 be equal to the negative value of the hours over 45.

LineCMDOTOperand 1OPEROTOperand2OTOperand3If GotoElse GoTo
00010 IF$VFLSA-TOTAL-HOURS LTN40 99999 00020
00200 IF$VFLSA-TOTAL-HOURSGEN45 99999 00030
00030 LETPC112SUB$VFLSA-TOTAL-HOURSN4000040
00040 LETPC112MLTPC112N-199999
99999EXIT 99999
Completion
PC 112 must be in the FLSA REG HOURS (or one of the other hours) element.

This UserCalc will be placed on the IDGR - Group form in the Accounting tab.

It will be executed after FLSA is calculated, then Personality will automatically recalculate FLSA taking into account the new value of the element that contains the adjust PC.


Notes #

Click to create a new notes page