Total Rewards Annual Leave accrual
Since the rewards statement is a snapshot in time, they would like to display Leave as a function of FTE X Accrual Rate, or a full year's work of accrued leave, not just a balance.
Has anyone tried this by tweaking the line in SQL bolded below to just pull the YTD balance (assuming you run it at the end of the year) or some other means?
Thanks for any input!
TRW_BN_LV_BAL sql
SELECT LV.EMPLID
, LV.EMPL_RCD
, LV.COMPANY
, LV.PLAN_TYPE
, LV.ACCRUAL_PROC_DT
, (LV.HRS_CARRYOVER + LV.HRS_EARNED_YTD - LV.HRS_TAKEN_YTD + LV.HRS_ADJUST_YTD + LV.HRS_BOUGHT_YTD - LV.HRS_SOLD_YTD - LV.HRS_TAKEN_UNPROC + LV.HRS_ADJUST_UNPROC + LV.HRS_BOUGHT_UNPROC - LV.HRS_SOLD_UNPROC)