1: Package Body pay_est_bus as
2: /* $Header: pyestrhi.pkb 120.0 2005/09/27 03:38 shisriva noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' pay_est_bus.'; -- Global package name
9: --
10: -- The following two global variables are only to be
11: -- used by the return_legislation_code function.
12: --
125: ,p_argument_value => p_element_set_id
126: );
127: --
128: --
129: if (( nvl(pay_est_bus.g_element_set_id, hr_api.g_number)
130: = p_element_set_id)
131: and ( nvl(pay_est_bus.g_language, hr_api.g_varchar2)
132: = p_language)) then
133: --
127: --
128: --
129: if (( nvl(pay_est_bus.g_element_set_id, hr_api.g_number)
130: = p_element_set_id)
131: and ( nvl(pay_est_bus.g_language, hr_api.g_varchar2)
132: = p_language)) then
133: --
134: -- The legislation code has already been found with a previous
135: -- call to this function. Just return the value in the global
134: -- The legislation code has already been found with a previous
135: -- call to this function. Just return the value in the global
136: -- variable.
137: --
138: l_legislation_code := pay_est_bus.g_legislation_code;
139: hr_utility.set_location(l_proc, 20);
140: else
141: --
142: -- The ID is different to the last call to this function
158: -- Set the global variables so the values are
159: -- available for the next call to this function.
160: --
161: close csr_leg_code;
162: pay_est_bus.g_element_set_id := p_element_set_id;
163: pay_est_bus.g_language := p_language;
164: pay_est_bus.g_legislation_code := l_legislation_code;
165: end if;
166: hr_utility.set_location(' Leaving:'|| l_proc, 40);
159: -- available for the next call to this function.
160: --
161: close csr_leg_code;
162: pay_est_bus.g_element_set_id := p_element_set_id;
163: pay_est_bus.g_language := p_language;
164: pay_est_bus.g_legislation_code := l_legislation_code;
165: end if;
166: hr_utility.set_location(' Leaving:'|| l_proc, 40);
167: return l_legislation_code;
160: --
161: close csr_leg_code;
162: pay_est_bus.g_element_set_id := p_element_set_id;
163: pay_est_bus.g_language := p_language;
164: pay_est_bus.g_legislation_code := l_legislation_code;
165: end if;
166: hr_utility.set_location(' Leaving:'|| l_proc, 40);
167: return l_legislation_code;
168: end return_legislation_code;
296: --
297: hr_utility.set_location(' Leaving:'||l_proc, 10);
298: End delete_validate;
299: --
300: end pay_est_bus;