[Home] [Help]
26: ,p_effective_date IN date)
27: RETURN BOOLEAN IS
28: --
29: l_pos_ei_data per_position_extra_info%ROWTYPE;
30: l_range_or_match pay_user_tables.range_or_match%type;
31: l_retained_grade ghr_pay_calc.retained_grade_rec_type;
32: l_user_table_id pay_user_tables.user_table_id%type;
33: l_proc varchar2(30) := 'get_open_pay_range';
34:
28: --
29: l_pos_ei_data per_position_extra_info%ROWTYPE;
30: l_range_or_match pay_user_tables.range_or_match%type;
31: l_retained_grade ghr_pay_calc.retained_grade_rec_type;
32: l_user_table_id pay_user_tables.user_table_id%type;
33: l_proc varchar2(30) := 'get_open_pay_range';
34:
35: cursor c_pay_type is
36: select range_or_match
33: l_proc varchar2(30) := 'get_open_pay_range';
34:
35: cursor c_pay_type is
36: select range_or_match
37: from pay_user_tables
38: where user_table_id = l_user_table_id;
39: --
40: --
41: BEGIN
129: -- 0 if it is the 'standard default' table otherwise 6
130: FUNCTION get_default_prd (p_position_id IN NUMBER
131: ,p_effective_date IN DATE)
132: RETURN VARCHAR2 IS
133: l_user_table_id pay_user_tables.user_table_id%TYPE;
134: l_user_table_name pay_user_tables.user_table_name%TYPE;
135: BEGIN
136: -- First use the routine already written to go and get the user_table_id for the given position
137: l_user_table_id := get_user_table_id (p_position_id
130: FUNCTION get_default_prd (p_position_id IN NUMBER
131: ,p_effective_date IN DATE)
132: RETURN VARCHAR2 IS
133: l_user_table_id pay_user_tables.user_table_id%TYPE;
134: l_user_table_name pay_user_tables.user_table_name%TYPE;
135: BEGIN
136: -- First use the routine already written to go and get the user_table_id for the given position
137: l_user_table_id := get_user_table_id (p_position_id
138: ,NVL(p_effective_date,TRUNC(sysdate)) );
574: RETURN VARCHAR2 IS
575: --
576: CURSOR cur_uta IS
577: SELECT uta.user_table_name
578: FROM pay_user_tables uta
579: WHERE uta.user_table_id = p_user_table_id;
580: --
581: BEGIN
582: FOR cur_uta_rec IN cur_uta LOOP
822: SELECT cin.value basic_pay
823: FROM pay_user_column_instances_f cin
824: ,pay_user_rows_f urw
825: ,pay_user_columns col
826: ,pay_user_tables utb
827: WHERE utb.user_table_name = ghr_pay_calc.l_standard_table_name
828: AND col.user_table_id = utb.user_table_id
829: AND col.user_column_name = p_step_or_rate
830: AND urw.user_table_id = utb.user_table_id
929: l_ret_basic_pay NUMBER;
930:
931: CURSOR get_std_user_table_id IS
932: SELECT utb.user_table_id
933: FROM pay_user_tables utb
934: WHERE utb.user_table_name = ghr_pay_calc.l_standard_table_name;
935:
936: BEGIN
937: -- First get the id of standard pay table for later use
1013: l_session ghr_history_api.g_session_var_type;
1014: l_pay_calc_out_data ghr_pay_calc.pay_calc_out_rec_type;
1015:
1016:
1017: l_user_table_id pay_user_tables.user_table_id%type;
1018: l_GM_unadjusted_rate NUMBER; --AVR
1019:
1020: -- Bug 4740036 Start
1021: l_std_user_table_id NUMBER;
1024: l_std_locality_adj NUMBER;
1025: l_loc_rate NUMBER;
1026: CURSOR c_user_table_id(p_user_table_name VARCHAR2) IS
1027: SELECT utb.user_table_id
1028: FROM pay_user_tables utb
1029: WHERE utb.user_table_name = p_user_table_name;
1030: -- Bug 4740036 End
1031:
1032: cursor c_pay_tab is
1029: WHERE utb.user_table_name = p_user_table_name;
1030: -- Bug 4740036 End
1031:
1032: cursor c_pay_tab is
1033: select 1 from pay_user_tables
1034: where substr(user_table_name,1,4) in ('999B','999C','999D','999E','999F')
1035: and user_table_id = l_user_table_id;
1036:
1037: l_itpay_table BOOLEAN := FALSE;
1036:
1037: l_itpay_table BOOLEAN := FALSE;
1038:
1039: cursor c_pay_tab_essl is
1040: select 1 from pay_user_tables
1041: where substr(user_table_name,1,4) = 'ESSL'
1042: and user_table_id = l_user_table_id;
1043:
1044: l_essl_table BOOLEAN := FALSE;
1790: --
1791: l_message_set BOOLEAN := FALSE;
1792: l_calculated BOOLEAN := TRUE;
1793: --
1794: l_user_table_id pay_user_tables.user_table_id%TYPE;
1795: --
1796:
1797: l_proc VARCHAR2(30) := 'main_pay_calc';
1798:
1873:
1874: --Bug # 9156680
1875:
1876: cursor c_pay_tab_essl is
1877: select 1 from pay_user_tables
1878: where substr(user_table_name,1,4) = 'ESSL'
1879: and user_table_id = l_user_table_id;
1880:
1881: l_essl_table BOOLEAN :=FALSE;
3292: ,p_new_locality_adj OUT NOCOPY NUMBER) IS
3293:
3294: l_std_user_table_id NUMBER;
3295: l_user_table_id NUMBER;
3296: l_user_table_name pay_user_tables.user_table_name%type;
3297: l_adjustment_percentage ghr_locality_pay_areas_f.adjustment_percentage%TYPE;
3298: l_new_std_relative_rate NUMBER;
3299:
3300:
3320: l_proc VARCHAR2(30) := '894_PRDM_GM';
3321:
3322: CURSOR get_std_user_table_id IS
3323: SELECT utb.user_table_id
3324: FROM pay_user_tables utb
3325: WHERE utb.user_table_name = ghr_pay_calc.l_standard_table_name;
3326:
3327: BEGIN
3328: hr_utility.set_location('Entering ...'|| l_proc,5);
3614: l_proc VARCHAR2(30) := 'GMIT_894';
3615:
3616: CURSOR get_std_user_table_id IS
3617: SELECT utb.user_table_id
3618: FROM pay_user_tables utb
3619: WHERE utb.user_table_name = ghr_pay_calc.l_standard_table_name;
3620:
3621: ----
3622: l_assignment_id per_assignments_f.assignment_id%type;
3791: l_proc VARCHAR2(30) := 'GMIT_892';
3792:
3793: CURSOR get_std_user_table_id IS
3794: SELECT utb.user_table_id
3795: FROM pay_user_tables utb
3796: WHERE utb.user_table_name = ghr_pay_calc.l_standard_table_name;
3797:
3798: ----
3799: l_assignment_id per_assignments_f.assignment_id%type;
3944: WHERE ppl.pay_plan = p_pay_plan
3945: AND ppl.equivalent_pay_plan = 'FW';
3946:
3947: l_pay_plan VARCHAR2(30);
3948: l_user_table_id pay_user_tables.user_table_id%type;
3949: l_user_table_name pay_user_tables.user_table_name%type;
3950: -- Bug 4695312
3951: l_gs_equivalent BOOLEAN;
3952: BEGIN
3945: AND ppl.equivalent_pay_plan = 'FW';
3946:
3947: l_pay_plan VARCHAR2(30);
3948: l_user_table_id pay_user_tables.user_table_id%type;
3949: l_user_table_name pay_user_tables.user_table_name%type;
3950: -- Bug 4695312
3951: l_gs_equivalent BOOLEAN;
3952: BEGIN
3953: l_gs_equivalent := FALSE;
4118: l_rg_flag BOOLEAN;
4119: l_leo_flag BOOLEAN;
4120: l_ret_flag BOOLEAN ;
4121: l_loc_rate_less_spl_rate BOOLEAN;
4122: l_user_table_name pay_user_tables.user_table_name%type;
4123: l_default_pay_table pay_user_tables.user_table_name%type;
4124: l_new_position_pay_table pay_user_tables.user_table_name%type;
4125: l_calculation_pay_table pay_user_tables.user_table_name%type;
4126: l_position_pay_table pay_user_tables.user_table_name%type;
4119: l_leo_flag BOOLEAN;
4120: l_ret_flag BOOLEAN ;
4121: l_loc_rate_less_spl_rate BOOLEAN;
4122: l_user_table_name pay_user_tables.user_table_name%type;
4123: l_default_pay_table pay_user_tables.user_table_name%type;
4124: l_new_position_pay_table pay_user_tables.user_table_name%type;
4125: l_calculation_pay_table pay_user_tables.user_table_name%type;
4126: l_position_pay_table pay_user_tables.user_table_name%type;
4127: l_retained_pay_table pay_user_tables.user_table_name%type;
4120: l_ret_flag BOOLEAN ;
4121: l_loc_rate_less_spl_rate BOOLEAN;
4122: l_user_table_name pay_user_tables.user_table_name%type;
4123: l_default_pay_table pay_user_tables.user_table_name%type;
4124: l_new_position_pay_table pay_user_tables.user_table_name%type;
4125: l_calculation_pay_table pay_user_tables.user_table_name%type;
4126: l_position_pay_table pay_user_tables.user_table_name%type;
4127: l_retained_pay_table pay_user_tables.user_table_name%type;
4128: l_user_table_id pay_user_tables.user_table_id%type;
4121: l_loc_rate_less_spl_rate BOOLEAN;
4122: l_user_table_name pay_user_tables.user_table_name%type;
4123: l_default_pay_table pay_user_tables.user_table_name%type;
4124: l_new_position_pay_table pay_user_tables.user_table_name%type;
4125: l_calculation_pay_table pay_user_tables.user_table_name%type;
4126: l_position_pay_table pay_user_tables.user_table_name%type;
4127: l_retained_pay_table pay_user_tables.user_table_name%type;
4128: l_user_table_id pay_user_tables.user_table_id%type;
4129: l_default_table_id pay_user_tables.user_table_id%type;
4122: l_user_table_name pay_user_tables.user_table_name%type;
4123: l_default_pay_table pay_user_tables.user_table_name%type;
4124: l_new_position_pay_table pay_user_tables.user_table_name%type;
4125: l_calculation_pay_table pay_user_tables.user_table_name%type;
4126: l_position_pay_table pay_user_tables.user_table_name%type;
4127: l_retained_pay_table pay_user_tables.user_table_name%type;
4128: l_user_table_id pay_user_tables.user_table_id%type;
4129: l_default_table_id pay_user_tables.user_table_id%type;
4130: l_calculation_pay_table_id pay_user_tables.user_table_id%type;
4123: l_default_pay_table pay_user_tables.user_table_name%type;
4124: l_new_position_pay_table pay_user_tables.user_table_name%type;
4125: l_calculation_pay_table pay_user_tables.user_table_name%type;
4126: l_position_pay_table pay_user_tables.user_table_name%type;
4127: l_retained_pay_table pay_user_tables.user_table_name%type;
4128: l_user_table_id pay_user_tables.user_table_id%type;
4129: l_default_table_id pay_user_tables.user_table_id%type;
4130: l_calculation_pay_table_id pay_user_tables.user_table_id%type;
4131: l_position_pay_table_id pay_user_tables.user_table_id%type;
4124: l_new_position_pay_table pay_user_tables.user_table_name%type;
4125: l_calculation_pay_table pay_user_tables.user_table_name%type;
4126: l_position_pay_table pay_user_tables.user_table_name%type;
4127: l_retained_pay_table pay_user_tables.user_table_name%type;
4128: l_user_table_id pay_user_tables.user_table_id%type;
4129: l_default_table_id pay_user_tables.user_table_id%type;
4130: l_calculation_pay_table_id pay_user_tables.user_table_id%type;
4131: l_position_pay_table_id pay_user_tables.user_table_id%type;
4132:
4125: l_calculation_pay_table pay_user_tables.user_table_name%type;
4126: l_position_pay_table pay_user_tables.user_table_name%type;
4127: l_retained_pay_table pay_user_tables.user_table_name%type;
4128: l_user_table_id pay_user_tables.user_table_id%type;
4129: l_default_table_id pay_user_tables.user_table_id%type;
4130: l_calculation_pay_table_id pay_user_tables.user_table_id%type;
4131: l_position_pay_table_id pay_user_tables.user_table_id%type;
4132:
4133: --Bug # 10043212
4126: l_position_pay_table pay_user_tables.user_table_name%type;
4127: l_retained_pay_table pay_user_tables.user_table_name%type;
4128: l_user_table_id pay_user_tables.user_table_id%type;
4129: l_default_table_id pay_user_tables.user_table_id%type;
4130: l_calculation_pay_table_id pay_user_tables.user_table_id%type;
4131: l_position_pay_table_id pay_user_tables.user_table_id%type;
4132:
4133: --Bug # 10043212
4134: l_old_pp_grd_exists BOOLEAN;
4127: l_retained_pay_table pay_user_tables.user_table_name%type;
4128: l_user_table_id pay_user_tables.user_table_id%type;
4129: l_default_table_id pay_user_tables.user_table_id%type;
4130: l_calculation_pay_table_id pay_user_tables.user_table_id%type;
4131: l_position_pay_table_id pay_user_tables.user_table_id%type;
4132:
4133: --Bug # 10043212
4134: l_old_pp_grd_exists BOOLEAN;
4135:
4143: --End Bug 7046241
4144:
4145: CURSOR c_get_table_id(p_user_table_name VARCHAR2) IS
4146: SELECT utb.user_table_id user_table_id, utb.user_table_name user_table_name
4147: FROM pay_user_tables utb
4148: WHERE utb.user_table_name = p_user_table_name;
4149:
4150: ------ Bug#5741977 start
4151: l_business_group_id per_positions.organization_id%TYPE;
5360: WHERE pay_plan = pc_pay_plan;
5361:
5362: CURSOR get_user_table_id(p_user_table_name VARCHAR2) IS
5363: SELECT utb.user_table_id
5364: FROM pay_user_tables utb
5365: WHERE utb.user_table_name = p_user_table_name;
5366:
5367: BEGIN
5368: hr_utility.set_location('Entering ...'|| l_proc,100);