How to count service based on user-defined half months
Answer: Set up a Service Definition (and Service Definition Set to reference it) that credits service as defined by the client (and summarized above) using the parameterization outlined below. Use this Service Definition Set for allocating the salary in the Salary Definition.
A. Service Definition:
C. Date Adjustments:
#THIS #MIN Date_of_Hire #MIN (1 #EFFDATE Salary) |
D:= #DAY #DATE & | |
#IF D <= 10 #THEN 1+#THIS-D #ELSEIF D<= 20 #THEN 16+#THIS - D #ELSE 1 + #ENDMTH #THIS #ENDIF |
#THIS #MAX #DODEC #MAX (2 #EFFDATE SALARY) |
D. Service rounding:
Once the Service Definition Set is defined, reference it in the Salary Definition that is allocating salary based on the user-defined half months outlined above. See Allocate annual salary amounts into user-defined half months for monthly salary for more details on this step.