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_all_payrolls_f pay
where pay.payroll_id = p_payroll_id
and pbg.business_group_id = pay.business_group_id;
select pbg.legislation_code
from per_business_groups_perf pbg
, pay_all_payrolls_f pay
where pay.payroll_id = p_payroll_id
and pbg.business_group_id = pay.business_group_id;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in out nocopy pay_pay_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
Procedure dt_update_validate
(p_org_payment_method_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_payroll_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 = hr_api.g_delete or
p_datetrack_mode = hr_api.g_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;
select opm.effective_start_date
,opm.effective_end_date
from pay_org_payment_methods_f opm
where opm.org_payment_method_id = p_default_payment_method_id
order by opm.effective_start_date
for update;
select null
from pay_org_payment_methods_f opm, pay_payment_types pt
,pay_defined_balances dfb, pay_balance_types bt
where opm.org_payment_method_id = p_default_payment_method_id
and opm.business_group_id +0 = p_business_group_id
and pt.payment_type_id = opm.payment_type_id
and pt.category in ('CA','CH')
and dfb.defined_balance_id = opm.defined_balance_id
and bt.balance_type_id = dfb.balance_type_id
and bt.assignment_remuneration_flag = 'Y'
and p_effective_date between opm.effective_start_date
and opm.effective_end_date;
select null
from per_time_period_types tpt
where tpt.period_type = p_period_type;
select tpr.basic_period_type
,tpr.periods_per_period
from per_time_period_rules tpr
,per_time_period_types tpt
where tpr.number_per_fiscal_year = tpt.number_per_fiscal_year
and tpt.period_type = p_period_type;
select con.business_group_id
into p_business_group_id
from pay_consolidation_sets con
where con.consolidation_set_id = p_consolidation_set_id;
select rule_type, rule_mode
from pay_legislation_rules lru
where lru.legislation_code = p_legislation_code
and lru.rule_type = nvl(p_rule_type,lru.rule_type);
select prl.payroll_name
,prl.number_of_years
,min(effective_start_date) min_payroll_start_date
,max(prl.effective_end_date) max_payroll_end_date
from pay_payrolls_f prl
where prl.payroll_id = p_payroll_id
group by prl.payroll_name, prl.number_of_years;
select rule_mode
from pay_legislative_field_info lfi
where lfi.validation_name = 'ITEM_PROPERTY'
and lfi.validation_type = 'DISPLAY'
and lfi.rule_type = 'DISPLAY'
and lfi.field_name = 'MULTI_ASSIGNMENTS_FLAG'
and lfi.target_location = 'PAYWSDPG'
and lfi.legislation_code = p_legislation_code;
select null
from pay_cost_allocation_keyflex
where cost_allocation_keyflex_id = p_cost_kff_id;
select null
from gl_sets_of_books
where set_of_books_id = p_gl_set_of_books_id;
select null
from hr_soft_coding_keyflex
where soft_coding_keyflex_id = p_soft_coding_keyflex_id;
select null
from hr_organization_units
where organization_id = p_organization_id;
if (p_datetrack_mode = hr_api.g_insert and
p_cost_allocation_keyflex_id is not null)
or ((p_datetrack_mode <> hr_api.g_insert) and
(p_cost_allocation_keyflex_id <>
nvl(pay_pay_shd.g_old_rec.COST_ALLOCATION_KEYFLEX_ID, hr_api.g_number)))
then
--
open csr_chk_keyflexs (p_cost_allocation_keyflex_id);
if (p_datetrack_mode = hr_api.g_insert and
p_suspense_account_keyflex_id is not null)
or ((p_datetrack_mode <> hr_api.g_insert) and
(p_suspense_account_keyflex_id <>
nvl(pay_pay_shd.g_old_rec.suspense_account_keyflex_id, hr_api.g_number)))
then
--
open csr_chk_keyflexs (p_suspense_account_keyflex_id);
if (p_datetrack_mode = hr_api.g_insert and
p_soft_coding_keyflex_id is not null)
or ((p_datetrack_mode <> hr_api.g_insert) and
(p_soft_coding_keyflex_id <>
nvl(pay_pay_shd.g_old_rec.soft_coding_keyflex_id, hr_api.g_number)))
then
--
open csr_chk_soft_coding_kff;
if (p_datetrack_mode = hr_api.g_insert and
p_gl_set_of_books_id is not null)
then
--
open csr_chk_set_of_books;
if (p_datetrack_mode = hr_api.g_insert and
p_organization_id is not null)
then
open csr_chk_org;
Procedure insert_validate
(p_rec in out nocopy pay_pay_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';
,p_datetrack_mode => hr_api.g_insert
);
End insert_validate;
Procedure update_validate
(p_rec in out nocopy pay_pay_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';
pay_pay_bus.dt_update_validate
(p_org_payment_method_id => p_rec.default_payment_method_id
,p_datetrack_mode => p_datetrack_mode
,p_validation_start_date => p_validation_start_date
,p_validation_end_date => p_validation_end_date
);
pay_pay_bus.chk_non_updateable_args
(p_effective_date => p_effective_date
,p_rec => p_rec
);
End update_validate;
Procedure delete_validate
(p_rec in pay_pay_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_payroll_id => p_rec.payroll_id
);
pay_payrolls_f_pkg.validate_delete_payroll
( p_payroll_id => p_rec.payroll_id
,p_default_payment_method_id => pay_pay_shd.g_old_rec.default_payment_method_id
,p_dt_delete_mode => p_datetrack_mode
,p_validation_start_date => p_validation_start_date
,p_validation_end_date => p_validation_end_date
);
End delete_validate;