488: );
489:
490:
491: -- set the global events table
492: g_pay_proc_evt_tab := ben_ext_person.g_pay_proc_evt_tab;
493:
494: l_curr_evt_index := ben_ext_person.g_chg_pay_evt_index;
495:
496: debug('----------');
490:
491: -- set the global events table
492: g_pay_proc_evt_tab := ben_ext_person.g_pay_proc_evt_tab;
493:
494: l_curr_evt_index := ben_ext_person.g_chg_pay_evt_index;
495:
496: debug('----------');
497: debug('Record :'||l_curr_evt_index);
498: debug('----------');
682: l_ret_location := '******';
683: ELSE
684:
685: debug('location:' || l_ret_location, 30);
686: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 30);
687: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
688: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
689:
690: --
683: ELSE
684:
685: debug('location:' || l_ret_location, 30);
686: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 30);
687: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
688: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
689:
690: --
691: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_ASSIGNMENTS_F'
684:
685: debug('location:' || l_ret_location, 30);
686: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 30);
687: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
688: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
689:
690: --
691: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_ASSIGNMENTS_F'
692: AND ben_ext_person.g_chg_pay_column = 'LOCATION_ID'
687: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
688: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
689:
690: --
691: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_ASSIGNMENTS_F'
692: AND ben_ext_person.g_chg_pay_column = 'LOCATION_ID'
693: AND ben_ext_person.g_chg_update_type <> 'I'
694: THEN -- this is checking location_event for case (3) and (4)
695:
688: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
689:
690: --
691: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_ASSIGNMENTS_F'
692: AND ben_ext_person.g_chg_pay_column = 'LOCATION_ID'
693: AND ben_ext_person.g_chg_update_type <> 'I'
694: THEN -- this is checking location_event for case (3) and (4)
695:
696: l_ret_location := '******';
689:
690: --
691: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_ASSIGNMENTS_F'
692: AND ben_ext_person.g_chg_pay_column = 'LOCATION_ID'
693: AND ben_ext_person.g_chg_update_type <> 'I'
694: THEN -- this is checking location_event for case (3) and (4)
695:
696: l_ret_location := '******';
697: g_location_change_exists := 'Y';
841: l_ret_person_decoration := '********';
842: ELSE
843:
844: debug('honors:' || l_ret_person_decoration, 30);
845: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 30);
846: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
847: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
848:
849: --
842: ELSE
843:
844: debug('honors:' || l_ret_person_decoration, 30);
845: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 30);
846: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
847: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
848:
849: --
850: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
843:
844: debug('honors:' || l_ret_person_decoration, 30);
845: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 30);
846: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
847: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
848:
849: --
850: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
851: AND
846: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
847: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
848:
849: --
850: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
851: AND
852: ben_ext_person.g_chg_pay_column = 'HONORS'
853: AND
854: ben_ext_person.g_chg_update_type <> 'I'
848:
849: --
850: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
851: AND
852: ben_ext_person.g_chg_pay_column = 'HONORS'
853: AND
854: ben_ext_person.g_chg_update_type <> 'I'
855: THEN -- this is checking location_event for case (3) and (4)
856: l_ret_person_decoration := '********';
850: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
851: AND
852: ben_ext_person.g_chg_pay_column = 'HONORS'
853: AND
854: ben_ext_person.g_chg_update_type <> 'I'
855: THEN -- this is checking location_event for case (3) and (4)
856: l_ret_person_decoration := '********';
857: g_honors_change_exists := 'Y';
858: ELSE
955: l_ret_title := '******';
956: ELSE
957:
958: debug('title:' || l_ret_title, 30);
959: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 44);
960: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 44);
961: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 44);
962: --
963: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
956: ELSE
957:
958: debug('title:' || l_ret_title, 30);
959: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 44);
960: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 44);
961: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 44);
962: --
963: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
964: AND ben_ext_person.g_chg_pay_column = 'TITLE'
957:
958: debug('title:' || l_ret_title, 30);
959: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 44);
960: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 44);
961: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 44);
962: --
963: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
964: AND ben_ext_person.g_chg_pay_column = 'TITLE'
965: AND ben_ext_person.g_chg_update_type <> 'I'
959: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 44);
960: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 44);
961: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 44);
962: --
963: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
964: AND ben_ext_person.g_chg_pay_column = 'TITLE'
965: AND ben_ext_person.g_chg_update_type <> 'I'
966: THEN
967: l_ret_title := '******';
960: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 44);
961: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 44);
962: --
963: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
964: AND ben_ext_person.g_chg_pay_column = 'TITLE'
965: AND ben_ext_person.g_chg_update_type <> 'I'
966: THEN
967: l_ret_title := '******';
968: g_title_change_exists := 'Y';
961: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 44);
962: --
963: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
964: AND ben_ext_person.g_chg_pay_column = 'TITLE'
965: AND ben_ext_person.g_chg_update_type <> 'I'
966: THEN
967: l_ret_title := '******';
968: g_title_change_exists := 'Y';
969: ELSE
1094: IF g_current_run = 'CUTOVER'
1095: THEN
1096: p_return := 'X';
1097: ELSE --run is PERIODIC
1098: IF (ben_ext_person.g_chg_pay_table = 'PAY_PERSONAL_PAYMENT_METHODS_F'
1099: AND ben_ext_person.g_chg_update_type = 'I')
1100: OR ben_ext_person.g_chg_pay_table <> 'PAY_PERSONAL_PAYMENT_METHODS_F'
1101: THEN
1102: p_return := 'X';
1095: THEN
1096: p_return := 'X';
1097: ELSE --run is PERIODIC
1098: IF (ben_ext_person.g_chg_pay_table = 'PAY_PERSONAL_PAYMENT_METHODS_F'
1099: AND ben_ext_person.g_chg_update_type = 'I')
1100: OR ben_ext_person.g_chg_pay_table <> 'PAY_PERSONAL_PAYMENT_METHODS_F'
1101: THEN
1102: p_return := 'X';
1103: END IF;
1096: p_return := 'X';
1097: ELSE --run is PERIODIC
1098: IF (ben_ext_person.g_chg_pay_table = 'PAY_PERSONAL_PAYMENT_METHODS_F'
1099: AND ben_ext_person.g_chg_update_type = 'I')
1100: OR ben_ext_person.g_chg_pay_table <> 'PAY_PERSONAL_PAYMENT_METHODS_F'
1101: THEN
1102: p_return := 'X';
1103: END IF;
1104: END IF;
1637: THEN
1638: l_ret_prevsur := '********************';
1639: ELSE
1640: debug('prev surname:' || l_ret_prevsur, 30);
1641: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 30);
1642: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
1643: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
1644: --
1645: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
1638: l_ret_prevsur := '********************';
1639: ELSE
1640: debug('prev surname:' || l_ret_prevsur, 30);
1641: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 30);
1642: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
1643: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
1644: --
1645: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
1646: AND ben_ext_person.g_chg_pay_column = 'PREVIOUS_LAST_NAME'
1639: ELSE
1640: debug('prev surname:' || l_ret_prevsur, 30);
1641: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 30);
1642: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
1643: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
1644: --
1645: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
1646: AND ben_ext_person.g_chg_pay_column = 'PREVIOUS_LAST_NAME'
1647: AND ben_ext_person.g_chg_update_type <> 'I'
1641: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 30);
1642: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
1643: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
1644: --
1645: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
1646: AND ben_ext_person.g_chg_pay_column = 'PREVIOUS_LAST_NAME'
1647: AND ben_ext_person.g_chg_update_type <> 'I'
1648: THEN -- this is checking location_event for case (3) and (4)
1649: l_ret_prevsur := '********************';
1642: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
1643: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
1644: --
1645: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
1646: AND ben_ext_person.g_chg_pay_column = 'PREVIOUS_LAST_NAME'
1647: AND ben_ext_person.g_chg_update_type <> 'I'
1648: THEN -- this is checking location_event for case (3) and (4)
1649: l_ret_prevsur := '********************';
1650: g_prevsur_change_exists := 'Y';
1643: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
1644: --
1645: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
1646: AND ben_ext_person.g_chg_pay_column = 'PREVIOUS_LAST_NAME'
1647: AND ben_ext_person.g_chg_update_type <> 'I'
1648: THEN -- this is checking location_event for case (3) and (4)
1649: l_ret_prevsur := '********************';
1650: g_prevsur_change_exists := 'Y';
1651: ELSE
1680: l_ret_midname := '********************';
1681: ELSE
1682:
1683: debug('middle name:' || l_ret_midname, 30);
1684: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 30);
1685: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
1686: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
1687:
1688: --
1681: ELSE
1682:
1683: debug('middle name:' || l_ret_midname, 30);
1684: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 30);
1685: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
1686: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
1687:
1688: --
1689: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
1682:
1683: debug('middle name:' || l_ret_midname, 30);
1684: debug('ben_ext_person.g_chg_pay_table:' || ben_ext_person.g_chg_pay_table, 30);
1685: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
1686: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
1687:
1688: --
1689: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
1690: AND ben_ext_person.g_chg_pay_column = 'MIDDLE_NAMES'
1685: debug('ben_ext_person.g_chg_pay_column:' || ben_ext_person.g_chg_pay_column, 30);
1686: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
1687:
1688: --
1689: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
1690: AND ben_ext_person.g_chg_pay_column = 'MIDDLE_NAMES'
1691: AND ben_ext_person.g_chg_update_type <> 'I'
1692: THEN -- this is checking location_event for case (3) and (4)
1693: l_ret_midname := '********************';
1686: debug('ben_ext_person.g_chg_update_type:' || ben_ext_person.g_chg_update_type, 30);
1687:
1688: --
1689: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
1690: AND ben_ext_person.g_chg_pay_column = 'MIDDLE_NAMES'
1691: AND ben_ext_person.g_chg_update_type <> 'I'
1692: THEN -- this is checking location_event for case (3) and (4)
1693: l_ret_midname := '********************';
1694: g_midname_change_exists := 'Y';
1687:
1688: --
1689: IF ben_ext_person.g_chg_pay_table = 'PER_ALL_PEOPLE_F'
1690: AND ben_ext_person.g_chg_pay_column = 'MIDDLE_NAMES'
1691: AND ben_ext_person.g_chg_update_type <> 'I'
1692: THEN -- this is checking location_event for case (3) and (4)
1693: l_ret_midname := '********************';
1694: g_midname_change_exists := 'Y';
1695: ELSE
1715: -- the logic below is to handle new_hires
1716: -- if new_hire, asterisk behaviour should be like "CUTOVER"
1717: IF g_current_run = 'PERIODIC'
1718: and
1719: ben_ext_person.g_chg_pay_table = 'PER_ALL_ASSIGNMENTS_F'
1720: and
1721: ben_ext_person.g_chg_update_type = 'I'
1722: THEN
1723: p_output := 'CUTOVER';
1717: IF g_current_run = 'PERIODIC'
1718: and
1719: ben_ext_person.g_chg_pay_table = 'PER_ALL_ASSIGNMENTS_F'
1720: and
1721: ben_ext_person.g_chg_update_type = 'I'
1722: THEN
1723: p_output := 'CUTOVER';
1724: ELSE
1725: p_output := g_current_run;