Modify Fast Formulas
You need to feed the element <Base Element Name> Health and Safety Benefit and <Base Element Name> Health and Safety Benefit Retro to the balance type Health and Safety Benefit Offset.
To edit the formulas, here's what to do:
Navigation:
- Edit the GLB_EARN_PRORATION formula as shown here:
/* ** Custom Code */ L_START=prorate_start L_LOOP_START=prorate_start L_END=prorate_end l_asg_id = ASG_HR_ASG_ID l_cb_id = GET_CONTEXT(CALC_BREAKDOWN_ID,1) L_ib_DAYS = DAYS_BETWEEN(trunc(L_END),trunc(L_START)) +1 l_ib_daily_rate = 0 l_log = PAY_INTERNAL_LOG_WRITE('(DPKBGLBPRT) l_asg_id '||to_char(l_asg_id) ) l_log = PAY_INTERNAL_LOG_WRITE('(DPKBGLBPRT) L_ib_DAYS '||to_char(L_ib_DAYS) ) l_log = PAY_INTERNAL_LOG_WRITE('(DPKBGLBPRT) l_prorate_start '||to_char(l_prorate_start) ) l_log = PAY_INTERNAL_LOG_WRITE('(DPKBGLBPRT) l_prorate_end '||to_char(l_prorate_end) ) WHILE L_LOOP_START <= L_END LOOP ( l_ib_daily_rate = l_value l_ib_daily_rate = l_value/L_ib_DAYS l_ib_daily_rate = trunc(l_ib_daily_rate + 0.005, 2) WSA_SET('WSA:'||'ORA_HRX_IE_HSB_DAILY_PER_RATE_FOR_OHSP'||'_'||to_char(l_asg_id)||'_'|| to_char(l_cb_id)||'_'||to_char(L_LOOP_START),l_ib_daily_rate) L_LOOP_START = ADD_DAYS(L_LOOP_START,1) l_log = PAY_INTERNAL_LOG_WRITE('(DPKBGLBPRT) L_LOOP_START : ' +to_char(L_LOOP_START )) l_log = PAY_INTERNAL_LOG_WRITE('(DPKBGLBPRT) l_ib_daily_rate '||to_char(l_ib_daily_rate) ) ) - Create Direct Payment Element of type: Recurring.Note:
- To have a setup for Occupational health and safety plan, ensure the occupational plan related absence elements has a lower processing priority (higher number) than the statutory plan related absence elements.
- This element is used for capturing payments for health and safety benefit. Also the processing priority (higher number) of this element must be higher than the absence elements. Change the default Proration Formula to the one created above.
- Make sure you enter values like this, for example:
- Enter Daily Amount and set the Periodicity to Daily.
- End date the element so that the effective start date and the effective end date of the element matches the period for which the health and safety benefit is being paid.