51:
52: Begin
53:
54: /* Added for GSI Bug 5472781 */
55: IF NOT hr_utility.chk_product_install('Oracle Human Resources', 'PL') THEN
56: hr_utility.trace('PL not installed.Leaving create_pl_veh_repos_extra_info');
57: return;
58: END IF;
59:
52: Begin
53:
54: /* Added for GSI Bug 5472781 */
55: IF NOT hr_utility.chk_product_install('Oracle Human Resources', 'PL') THEN
56: hr_utility.trace('PL not installed.Leaving create_pl_veh_repos_extra_info');
57: return;
58: END IF;
59:
60: If p_vrei_information_category in ('PL_VEHICLE_INSURANCE_INFO','PL_VEHICLE_ACCIDENT_INFO','PL_VEHICLE_ADDITIONAL_INFO') Then
62: fetch cur_eff into l_effective_start_date, l_effective_end_date;
63: If fnd_date.canonical_to_date(p_vrei_information1) < l_effective_start_date or fnd_date.canonical_to_date(p_vrei_information1) > l_effective_end_date Then
64: close cur_eff;
65:
66: hr_utility.set_message(800,'HR_375832_VRE_PL_EFF_DATE');
67: hr_utility.set_message_token('STARTDATE',l_effective_start_date);
68: hr_utility.set_message_token('ENDDATE',l_effective_end_date);
69: hr_utility.raise_error;
70: End if;
63: If fnd_date.canonical_to_date(p_vrei_information1) < l_effective_start_date or fnd_date.canonical_to_date(p_vrei_information1) > l_effective_end_date Then
64: close cur_eff;
65:
66: hr_utility.set_message(800,'HR_375832_VRE_PL_EFF_DATE');
67: hr_utility.set_message_token('STARTDATE',l_effective_start_date);
68: hr_utility.set_message_token('ENDDATE',l_effective_end_date);
69: hr_utility.raise_error;
70: End if;
71: close cur_eff;
64: close cur_eff;
65:
66: hr_utility.set_message(800,'HR_375832_VRE_PL_EFF_DATE');
67: hr_utility.set_message_token('STARTDATE',l_effective_start_date);
68: hr_utility.set_message_token('ENDDATE',l_effective_end_date);
69: hr_utility.raise_error;
70: End if;
71: close cur_eff;
72: End if;
65:
66: hr_utility.set_message(800,'HR_375832_VRE_PL_EFF_DATE');
67: hr_utility.set_message_token('STARTDATE',l_effective_start_date);
68: hr_utility.set_message_token('ENDDATE',l_effective_end_date);
69: hr_utility.raise_error;
70: End if;
71: close cur_eff;
72: End if;
73:
122:
123: Begin
124:
125: /* Added for GSI Bug 5472781 */
126: IF NOT hr_utility.chk_product_install('Oracle Human Resources', 'PL') THEN
127: hr_utility.trace('PL not installed.Leaving update_pl_veh_repos_extra_info');
128: return;
129: END IF;
130:
123: Begin
124:
125: /* Added for GSI Bug 5472781 */
126: IF NOT hr_utility.chk_product_install('Oracle Human Resources', 'PL') THEN
127: hr_utility.trace('PL not installed.Leaving update_pl_veh_repos_extra_info');
128: return;
129: END IF;
130:
131: If p_vrei_information_category in ('PL_VEHICLE_INSURANCE_INFO','PL_VEHICLE_ACCIDENT_INFO','PL_VEHICLE_ADDITIONAL_INFO') Then
132: Open cur_eff;
133: fetch cur_eff into l_effective_start_date, l_effective_end_date;
134: If fnd_date.canonical_to_date(p_vrei_information1) < l_effective_start_date or fnd_date.canonical_to_date(p_vrei_information1) > l_effective_end_date Then
135: close cur_eff;
136: hr_utility.set_message(800,'HR_375832_VRE_PL_EFF_DATE');
137: hr_utility.set_message_token('STARTDATE',l_effective_start_date);
138: hr_utility.set_message_token('ENDDATE',l_effective_end_date);
139: hr_utility.raise_error;
140: End if;
133: fetch cur_eff into l_effective_start_date, l_effective_end_date;
134: If fnd_date.canonical_to_date(p_vrei_information1) < l_effective_start_date or fnd_date.canonical_to_date(p_vrei_information1) > l_effective_end_date Then
135: close cur_eff;
136: hr_utility.set_message(800,'HR_375832_VRE_PL_EFF_DATE');
137: hr_utility.set_message_token('STARTDATE',l_effective_start_date);
138: hr_utility.set_message_token('ENDDATE',l_effective_end_date);
139: hr_utility.raise_error;
140: End if;
141: close cur_eff;
134: If fnd_date.canonical_to_date(p_vrei_information1) < l_effective_start_date or fnd_date.canonical_to_date(p_vrei_information1) > l_effective_end_date Then
135: close cur_eff;
136: hr_utility.set_message(800,'HR_375832_VRE_PL_EFF_DATE');
137: hr_utility.set_message_token('STARTDATE',l_effective_start_date);
138: hr_utility.set_message_token('ENDDATE',l_effective_end_date);
139: hr_utility.raise_error;
140: End if;
141: close cur_eff;
142: End if;
135: close cur_eff;
136: hr_utility.set_message(800,'HR_375832_VRE_PL_EFF_DATE');
137: hr_utility.set_message_token('STARTDATE',l_effective_start_date);
138: hr_utility.set_message_token('ENDDATE',l_effective_end_date);
139: hr_utility.raise_error;
140: End if;
141: close cur_eff;
142: End if;
143: