The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT status_code
--FROM ozf_resale_batches
FROM ozf_resale_batches_all
WHERE resale_batch_id = p_id;
OZF_RESALE_COMMON_PVT.Update_Duplicates (
p_api_version => 1.0,
p_init_msg_list => FND_API.G_FALSE,
p_commit => FND_API.G_FALSE,
p_validation_level => FND_API.G_VALID_LEVEL_FULL,
p_resale_batch_id => l_batch_id,
p_resale_batch_type => l_batch_type,
p_batch_status => l_batch_status,
x_batch_status => l_batch_return_status,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data);
SELECT auto_tp_accrual_flag
FROM ozf_sys_parameters;
SELECT status_code
--FROM ozf_resale_batches
FROM ozf_resale_batches_all
WHERE resale_batch_id = p_id;
l_last_updated_by Number;
SELECT batch_number
, batch_type
, last_updated_by
, org_id
FROM ozf_resale_batches_all
WHERE resale_batch_id = p_id;
SELECT employee_id
FROM ams_jtf_rs_emp_v
WHERE resource_id = p_res_id;
, l_last_updated_by
, l_batch_org_id;
OPEN emp_infor_csr(OZF_UTILITY_PVT.get_resource_id(l_last_updated_by));
SELECT status_code
, lines_disputed
--FROM ozf_resale_batches
FROM ozf_resale_batches_all
WHERE resale_batch_id = p_id;
UPDATE ozf_resale_batches_all
SET status_code = OZF_RESALE_COMMON_PVT.G_BATCH_OPEN
WHERE resale_batch_id = l_resale_batch_id;
UPDATE ozf_resale_batches_all
SET status_code = OZF_RESALE_COMMON_PVT.G_BATCH_DISPUTED
WHERE resale_batch_id = l_resale_batch_id;
UPDATE ozf_resale_batches_all
SET status_code = OZF_RESALE_COMMON_PVT.G_BATCH_PROCESSED
WHERE resale_batch_id = l_resale_batch_id;
UPDATE ozf_resale_batches_all
SET status_code = OZF_RESALE_COMMON_PVT.G_BATCH_DISPUTED
WHERE resale_batch_id = l_resale_batch_id;
l_last_updated_by NUMBER;
SELECT last_updated_by
, status_code
--FROM ozf_resale_batches
FROM ozf_resale_batches_all
WHERE resale_batch_id = p_id;
SELECT ppl.person_id
FROM jtf_rs_resource_extns rsc
, per_people_f ppl
WHERE rsc.category = 'EMPLOYEE'
AND ppl.person_id = rsc.source_id
AND rsc.resource_id=p_res_id;
FETCH batch_status_csr INTO l_last_updated_by
, l_batch_status;
OPEN emp_infor_csr(OZF_UTILITY_PVT.get_resource_id(l_last_updated_by));
UPDATE ozf_resale_batches_all
SET status_code = l_batch_next_status
WHERE resale_batch_id = l_resale_batch_id;
UPDATE ozf_resale_batches_all
SET status_code = OZF_RESALE_COMMON_PVT.G_BATCH_PENDING_PAYMENT
WHERE resale_batch_id = l_resale_batch_id;
l_last_update_date DATE;
SELECT creation_date,
last_update_date,
partner_party_id,
partner_cust_account_id
--FROM ozf_resale_batches
FROM ozf_resale_batches_all
WHERE resale_batch_id = p_batch_id;
SELECT header_tolerance_operand,
header_tolerance_calc_code
FROM ozf_sys_parameters;
SELECT header_tolerance_operand,
header_tolerance_calc_code
FROM ozf_cust_trd_prfls
WHERE cust_account_id = p_cust_account_id;
SELECT header_tolerance_operand,
header_tolerance_calc_code
FROM ozf_cust_trd_prfls
WHERE party_id = p_party_id
and cust_account_id IS NULL;
SELECT line_tolerance_operand,
line_tolerance_calc_code
FROM ozf_sys_parameters;
SELECT line_tolerance_operand,
line_tolerance_calc_code
FROM ozf_cust_trd_prfls
WHERE cust_account_id = p_cust_account_id;
SELECT line_tolerance_operand,
line_tolerance_calc_code
FROM ozf_cust_trd_prfls
WHERE party_id = p_party_id
AND cust_account_id IS NULL;
l_last_update_date,
l_partner_party_id,
l_partner_cust_account_id;
IF l_creation_date = l_last_update_date THEN
-- It is the first time this batch is processed. default toleracne
-- Set header tolerance
OPEN header_tolerance_account_csr(l_partner_cust_account_id);
UPDATE ozf_resale_batches_all
SET header_tolerance_operand = l_header_tolerance_operand,
header_tolerance_calc_code = l_header_tolerance_calc_code,
line_tolerance_operand = l_line_tolerance_operand,
line_tolerance_calc_code = l_line_tolerance_calc_code
WHERE resale_batch_id = l_resale_batch_id;
SELECT status_code
, last_updated_by
, batch_type
, batch_number
FROM ozf_resale_batches_all
WHERE resale_batch_id = p_resale_batch_id;
SELECT ppl.person_id
FROM jtf_rs_resource_extns rsc
, per_people_f ppl
WHERE rsc.category = 'EMPLOYEE'
AND ppl.person_id = rsc.source_id
AND rsc.resource_id=p_res_id;
UPDATE ozf_resale_batches_all
SET status_code = 'PROCESSING'
WHERE resale_batch_id = p_resale_batch_id;
OPEN emp_infor_csr(OZF_UTILITY_PVT.get_resource_id(l_batch_info.last_updated_by));
SELECT status_code
, last_updated_by
, batch_type
, batch_number
FROM ozf_resale_batches_all
WHERE resale_batch_id = p_resale_batch_id;
SELECT ppl.person_id
FROM jtf_rs_resource_extns rsc
, per_people_f ppl
WHERE rsc.category = 'EMPLOYEE'
AND ppl.person_id = rsc.source_id
AND rsc.resource_id=p_res_id;
UPDATE ozf_resale_batches_all
SET status_code = 'PENDING_PAYMENT'
WHERE resale_batch_id = p_resale_batch_id;
OPEN emp_infor_csr(OZF_UTILITY_PVT.get_resource_id(l_batch_info.last_updated_by));