The following lines contain the word 'select', 'insert', 'update' or 'delete':
procedure update_realloc_txn_dtl
(
p_validate in boolean
,p_effective_date in date
,p_transaction_id in number
,p_transaction_type in varchar2
,p_entity_id in number
,p_budget_detail_id in number
,p_txn_detail_id in number
,p_object_version_number in out nocopy number
) is
--
-- Declare cursors and local variables
--
l_proc varchar2(72) := g_package||'update_realloc_txn_dtl';
savepoint update_realloc_txn_dtl;
pqh_bdgt_pool_realloctions_bk2.update_realloc_txn_dtl_b
(
p_transaction_id => p_transaction_id
,p_transaction_type => p_transaction_type
,p_entity_id => p_entity_id
,p_budget_detail_id => p_budget_detail_id
,p_txn_detail_id => p_txn_detail_id
,p_object_version_number => l_object_version_number
);
(p_module_name => 'UPDATE_REALLOC_TXN_DTL'
,p_hook_type => 'BP'
);
pqh_bdgt_pool_realloctions_bk2.update_realloc_txn_dtl_a
(
p_transaction_id => p_transaction_id
,p_transaction_type => p_transaction_type
,p_entity_id => p_entity_id
,p_budget_detail_id => p_budget_detail_id
,p_txn_detail_id => p_txn_detail_id
,p_object_version_number => l_object_version_number
);
(p_module_name => 'UPDATE_REALLOC_TXN_DTL'
,p_hook_type => 'AP'
);
ROLLBACK TO update_realloc_txn_dtl;
ROLLBACK TO update_realloc_txn_dtl;
end update_realloc_txn_dtl;
procedure delete_realloc_txn_dtl
(p_validate in boolean
,p_txn_detail_id in number
,p_object_version_number in number
) is
--
-- Declare cursors and local variables
--
l_proc varchar2(72) := g_package||'delete_realloc_txn_dtl';
savepoint delete_realloc_txn_dtl;
pqh_bdgt_pool_realloctions_bk3.delete_realloc_txn_dtl_b
(
p_txn_detail_id => p_txn_detail_id
,p_object_version_number => p_object_version_number
);
(p_module_name => 'DELETE_REALLOC_TXN_DTL'
,p_hook_type => 'BP'
);
pqh_bdgt_pool_realloctions_bk3.delete_realloc_txn_dtl_a
(
p_txn_detail_id => p_txn_detail_id
,p_object_version_number => l_object_version_number
);
(p_module_name => 'DELETE_REALLOC_TXN_DTL'
,p_hook_type => 'AP'
);
ROLLBACK TO delete_realloc_txn_dtl;
ROLLBACK TO delete_realloc_txn_dtl;
end delete_realloc_txn_dtl;
SELECT pool_id
FROM pqh_bdgt_pool_realloctions txndtl
WHERE txndtl.reallocation_id = p_txn_detail_id;
SELECT 1
FROM pqh_budget_pools txn,
pqh_bdgt_pool_realloctions txndtl,
pqh_bdgt_pool_realloctions txnprd
WHERE txn.pool_id = p_transaction_id
AND txndtl.pool_id = txn.pool_id
AND txndtl.reallocation_id = txnprd.txn_detail_id
AND NVL(txnprd.entity_id,-1) = NVL(p_entity_id,-1)
-- AND NVL(txnprd.start_date,sysdate) = NVL(p_start_date,sysdate)
-- AND NVL(txnprd.end_date,sysdate) = NVL(p_end_date,sysdate);
procedure update_realloc_txn_period
(
p_validate in boolean
,p_effective_date in date
,p_txn_detail_id in number
,p_transaction_type in varchar2
,p_entity_id in number
,p_budget_period_id in number
,p_start_date in date
,p_end_date in date
,p_reallocation_amt in number
,p_reserved_amt in number
,p_reallocation_period_id in number
,p_object_version_number in out nocopy number
) is
--
-- Declare cursors and local variables
--
l_proc varchar2(72) := g_package||'update_realloc_txn_period';
SELECT pool_id
FROM pqh_bdgt_pool_realloctions txndtl
WHERE txndtl.reallocation_id = p_txn_detail_id;
SELECT 1
FROM pqh_budget_pools txn,
pqh_bdgt_pool_realloctions txndtl,
pqh_bdgt_pool_realloctions txnprd
WHERE txn.pool_id = p_transaction_id
AND txndtl.pool_id = txn.pool_id
AND txndtl.reallocation_id = txnprd.txn_detail_id
AND NVL(txnprd.entity_id,-1) = NVL(p_entity_id,-1)
-- AND NVL(txnprd.start_date,sysdate) = NVL(p_start_date,sysdate)
-- AND NVL(txnprd.end_date,sysdate) = NVL(p_end_date,sysdate);
savepoint update_realloc_txn_period;
pqh_bdgt_pool_realloctions_bk5.update_realloc_txn_period_b
(
p_txn_detail_id => p_txn_detail_id
,p_transaction_type => p_transaction_type
,p_entity_id => p_entity_id
,p_budget_period_id => p_budget_period_id
,p_start_date => p_start_date
,p_end_date => p_end_date
,p_reallocation_amt => p_reallocation_amt
,p_reserved_amt => p_reserved_amt
,p_reallocation_period_id => p_reallocation_period_id
,p_object_version_number => l_object_version_number
);
(p_module_name => 'UPDATE_REALLOC_TXN_PERIOD'
,p_hook_type => 'BP'
);
pqh_bdgt_pool_realloctions_bk5.update_realloc_txn_period_a
(
p_txn_detail_id => p_txn_detail_id
,p_transaction_type => p_transaction_type
,p_entity_id => p_entity_id
,p_budget_period_id => p_budget_period_id
,p_start_date => p_start_date
,p_end_date => p_end_date
,p_reallocation_amt => p_reallocation_amt
,p_reserved_amt => p_reserved_amt
,p_reallocation_period_id => p_reallocation_period_id
,p_object_version_number => l_object_version_number
);
(p_module_name => 'UPDATE_REALLOC_TXN_PERIOD'
,p_hook_type => 'AP'
);
ROLLBACK TO update_realloc_txn_period;
ROLLBACK TO update_realloc_txn_period;
end update_realloc_txn_period;
procedure delete_realloc_txn_period
(p_validate in boolean
,p_reallocation_period_id in number
,p_object_version_number in number
) is
--
-- Declare cursors and local variables
--
l_proc varchar2(72) := g_package||'delete_realloc_txn_period';
savepoint delete_realloc_txn_period;
pqh_bdgt_pool_realloctions_bk6.delete_realloc_txn_period_b
(
p_reallocation_period_id => p_reallocation_period_id
,p_object_version_number => p_object_version_number
);
(p_module_name => 'DELETE_REALLOC_TXN_PERIOD'
,p_hook_type => 'BP'
);
pqh_bdgt_pool_realloctions_bk6.delete_realloc_txn_period_a
(
p_reallocation_period_id => p_reallocation_period_id
,p_object_version_number => l_object_version_number
);
(p_module_name => 'DELETE_REALLOC_TXN_PERIOD'
,p_hook_type => 'AP'
);
ROLLBACK TO delete_realloc_txn_period;
ROLLBACK TO delete_realloc_txn_period;
end delete_realloc_txn_period;