AT_SAMPLE_USERCALC

AT - No Time Allowed to be Taken for 6 months#

Statement
Employees earn their vacation entitlement per biweekly pay period. They are not allowed, however, to take vacation time during the first 6 months of employment and should not be paid out the amount if they terminate. As there is no rule to prevent an employee from taking time, a UserCalc is required at AC 270 or AC 280, to store off the entitlement amount until it is available to the employee. The entitlement is to be given to the employee on the pay before their 6-month anniversary to ensure that it is available during the next pay period.

Set up#

IMUC Variables
EntitlementNumeric0
Prob Date Date
IPPC Pay Components
9015 Prob Vac EarnedStatistic attached to Stat Prob Vac Ernd
IDSC Statistic Components
Prob Vac ErndReplace

UserCalc#

Product: AT
Type: Function
Return Value: Number

LineCMDOTOperand 1OPEROTOperand2OTOperand3If GotoElse GoTo
00010 LETVENTITLEMENTEQ$PNUMBER-PARAMETER 00020
00020LETVPROB DATEBDDBEEM.SENIORITY_DATEA+6M00030
00030LETVPROB DATEBDVPROB DATEA-13D00100
00100IF$SPERIOD-START-DATEGTVPROB DATE 0020000300
00200 LETPC9015ADDVENTITLEMENTSPROB VAC ERND00210
00210 LETVENTITLEMENTEQN0 99999
00300PPE BDVPROB DATE 0031099999
00310 PPE BDDBEEM.TERMINATION_DATE 9999900320
00320 LET PC 9015 EQ N 0 00330
00330 LETVENTITLEMENTADDVENTITLEMENTSPROB VAC ERND99999
99999 RETVENTITLEMENT 99999

Completion#

After publishing this UserCalc, attach it to Attendance Component A270 or A280 - Prorate by The Attendance Component does not have to be Rule 00 User Calc Only. Users may choose the appropriate Rule and then by placing the UserCalc in the User Calc field it will be executed.


Notes #

Click to create a new notes page