The following lines contain the word 'select', 'insert', 'update' or 'delete':
select pbg.security_group_id,
pbg.legislation_code
from per_business_groups_perf pbg
, pay_time_definitions tdf
where tdf.time_definition_id = p_time_definition_id
and pbg.business_group_id (+) = tdf.business_group_id;
select pbg.legislation_code
from per_business_groups_perf pbg
, pay_time_definitions tdf
where tdf.time_definition_id = p_time_definition_id
and pbg.business_group_id (+) = tdf.business_group_id;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in pay_tdf_shd.g_rec_type
,p_time_def_used in boolean
,p_regenerate_periods out nocopy boolean
,p_delete_periods out nocopy boolean
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
p_delete_periods := false;
p_delete_periods := true;
p_delete_periods := false;
End chk_non_updateable_args;
(p_insert IN boolean
,p_business_group_id IN number
,p_legislation_code IN varchar2
,p_legislation_subgroup IN varchar2 DEFAULT NULL) IS
--
BEGIN
--
-- Call the supporting procedure to check startup mode
IF (p_insert) THEN
if p_business_group_id is not null and p_legislation_code is not null then
fnd_message.set_name('PAY', 'PAY_34057_FLSA_CROSS_VAL1');
select null
from pay_time_definitions
where period_time_definition_id = p_time_definition_id;
select null
from pay_element_types_f
where time_definition_id = p_time_definition_id
and time_definition_type = 'S';
select null
from pay_run_results
where time_definition_id = p_time_definition_id;
select null
from pay_entry_process_details
where time_definition_id = p_time_definition_id;
select null
from hr_lookups
where lookup_type like 'PAY_PIT_OFFSET_PERIOD_TYPE'
and enabled_flag='Y'
and lookup_code = p_period_type;
select null
from per_time_period_types
where period_type = p_period_type;
select null
from hr_lookups
where lookup_type like 'PAY_PIT_PERIOD_TYPE'
and enabled_flag='Y'
and lookup_code = p_period_type;
select null
from pay_time_definitions ptd
where ptd.time_definition_id = p_period_time_definition_id
and nvl(ptd.definition_type, 'P') = 'P'
and (
( p_business_group_id is null and
p_legislation_code is null and
ptd.business_group_id is null and
ptd.legislation_code is null
) OR
( p_business_group_id is null and
p_legislation_code is not null and
( (ptd.business_group_id is null and ptd.legislation_code is null)
OR ( ptd.business_group_id is null and ptd.legislation_code = p_legislation_code) )
) OR
(
p_business_group_id is not null and
p_legislation_code is null and
( ( ptd.business_group_id is null and ptd.legislation_code is null)
OR (ptd.business_group_id is null and ptd.legislation_code = hr_api.return_legislation_code(p_business_group_id))
OR (ptd.business_group_id = p_business_group_id and ptd.legislation_code is null) )
)
);
select null
from pay_time_definitions ptd
where ptd.definition_name = p_definition_name
and (
( p_business_group_id is null and
p_legislation_code is null and
ptd.business_group_id is null and
ptd.legislation_code is null
) OR
( p_business_group_id is null and
p_legislation_code is not null and
( (ptd.business_group_id is null and ptd.legislation_code is null)
OR ( ptd.business_group_id is null and ptd.legislation_code = p_legislation_code) )
) OR
(
p_business_group_id is not null and
p_legislation_code is null and
( ( ptd.business_group_id is null and ptd.legislation_code is null)
OR (ptd.business_group_id is null and ptd.legislation_code = hr_api.return_legislation_code(p_business_group_id))
OR (ptd.business_group_id = p_business_group_id and ptd.legislation_code is null) )
)
);
select null
from pay_time_definitions ptd
where ptd.short_name = p_short_name;
select null
from hr_standard_lookups hrl
where hrl.lookup_type = 'PAY_TIME_DEFINITION_TYPE'
and hrl.lookup_code = p_definition_type
and hrl.enabled_flag = 'Y';
select null
from fnd_territories
where territory_code = p_legislation_code ;
Procedure insert_validate
(p_effective_date in date
,p_rec in pay_tdf_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_effective_date in date
,p_rec in pay_tdf_shd.g_rec_type
,p_regenerate_periods out nocopy boolean
,p_delete_periods out nocopy boolean
) is
--
l_proc varchar2(72) := g_package||'update_validate';
chk_non_updateable_args
(p_effective_date => p_effective_date
,p_rec => p_rec
,p_time_def_used => l_time_def_usage
,p_regenerate_periods => p_regenerate_periods
,p_delete_periods => p_delete_periods
);
End update_validate;
Procedure delete_validate
(p_rec in pay_tdf_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'delete_validate';
fnd_message.set_name('PAY', 'PAY_34064_FLSA_INV_DELETE');
End delete_validate;