Modify Fast Formulas for Maternity Absences

You need to modify the existing formula <Absence Element> Entitlement Result to incorporate logic for occupational payment and benefit payment.

To edit the formulas, here's what to do:

Navigation: My Client Groups > Payroll > Elements
  1. Add the following code after this line:
    l_log = PAY_INTERNAL_LOG_WRITE('[<Absence Element>_ENTITLEMENT_RESULT] - Absence Override Check Printer    OUTPUT   : '|| out_ovrd_check_printer)
    i.e.
    IF IS_EXECUTABLE('GIKUMARI_IE_MATERNITY_PAYMENT') THEN
          (
            SET_INPUT ('i_dir_card_id', dir_card_id)
            SET_INPUT ('i_dir_comp_id', dir_comp_id)
    		SET_INPUT ('i_factor', factor)
    		SET_INPUT ('i_pay_value', pay_value)
    		SET_INPUT ('i_deduction', deduction)
            SET_INPUT ('i_unit', unit)		
            EXECUTE('GIKUMARI_IE_MATERNITY_PAYMENT')
            
    		L_SSP_PAID = GET_OUTPUT('pay_value', 0)
    		l_process_date = GET_OUTPUT('L_PROCESS_DATE', l_dummy_date)
          ) 
      IF pay_value = 0 THEN
    	(
    		unit = 0
    	)
    
  2. Replace the formula IE_MATERNITY_PAYMENT in the above code with the Oracle payment formula created earlier.