The following lines contain the word 'select', 'insert', 'update' or 'delete':
select null
from ff_formulas_f ff,
per_business_groups pbg
where ff.formula_id = p_formula_id
and ff.formula_type_id = -153 -- BEN_ELIGY
and pbg.business_group_id = p_business_group_id
and nvl(ff.business_group_id,p_business_group_id) =
p_business_group_id
and nvl(ff.legislation_code,pbg.legislation_code) =
pbg.legislation_code
and p_effective_date
between ff.effective_start_date
and ff.effective_end_date;
cursor c1 is select null
from ben_prtn_eligy_rl_f
where prtn_eligy_rl_id <> nvl(p_prtn_eligy_rl_id, -1 )
and prtn_elig_id = p_prtn_elig_id
and ordr_to_aply_num = p_ordr_to_aply_num
and business_group_id + 0 = p_business_group_id
and p_effective_date between effective_start_date
and effective_end_date;
select null
from ben_prtn_elig_f prtn, ben_pl_f p
where prtn.prtn_elig_id = p_prtn_elig_id
and prtn.pl_id = p.pl_id
and (p.invk_flx_cr_pl_flag = 'Y'
or
p.imptd_incm_calc_cd is not null)
and p_effective_date between prtn.effective_start_date
and prtn.effective_end_date
and p_effective_date between p.effective_start_date
and p.effective_end_date;
select null
from ben_prtn_elig_f epa, ben_pl_f pln, ben_plip_f plip
where epa.prtn_elig_id = p_prtn_elig_id
and epa.plip_id = plip.plip_id
and plip.pl_id = pln.pl_id
and (pln.invk_flx_cr_pl_flag = 'Y'
or
pln.imptd_incm_calc_cd is not null)
and p_effective_date between epa.effective_start_date
and epa.effective_end_date
and p_effective_date between pln.effective_start_date
and pln.effective_end_date
and p_effective_date between plip.effective_start_date
and plip.effective_end_date;
Procedure dt_update_validate
(p_prtn_elig_id in number default hr_api.g_number,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) Is
--
l_proc varchar2(72) := g_package||'dt_update_validate';
End dt_update_validate;
Procedure dt_delete_validate
(p_prtn_eligy_rl_id in number,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) Is
--
l_proc varchar2(72) := g_package||'dt_delete_validate';
If (p_datetrack_mode = 'DELETE' or
p_datetrack_mode = 'ZAP') then
--
--
-- Ensure the arguments are not null
--
hr_api.mandatory_arg_error
(p_api_name => l_proc,
p_argument => 'validation_start_date',
p_argument_value => p_validation_start_date);
End dt_delete_validate;
Procedure insert_validate
(p_rec in ben_cer_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_rec in ben_cer_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'update_validate';
dt_update_validate
(p_prtn_elig_id => p_rec.prtn_elig_id,
p_datetrack_mode => p_datetrack_mode,
p_validation_start_date => p_validation_start_date,
p_validation_end_date => p_validation_end_date);
End update_validate;
Procedure delete_validate
(p_rec in ben_cer_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'delete_validate';
dt_delete_validate
(p_datetrack_mode => p_datetrack_mode,
p_validation_start_date => p_validation_start_date,
p_validation_end_date => p_validation_end_date,
p_prtn_eligy_rl_id => p_rec.prtn_eligy_rl_id);
End delete_validate;
select a.legislation_code
from per_business_groups a,
ben_prtn_eligy_rl_f b
where b.prtn_eligy_rl_id = p_prtn_eligy_rl_id
and a.business_group_id = b.business_group_id;