The following lines contain the word 'select', 'insert', 'update' or 'delete':
select customer_id,receivable_type
from ota_finance_headers
where finance_header_id = p_finance_header_id;
select customer_id,type,number_of_places,limit_each_event_flag
from ota_booking_deals
where booking_deal_id = p_booking_deal_id;
select tsr.vendor_id
from ota_resource_bookings trb
, ota_suppliable_resources tsr
where trb.resource_booking_id = p_resource_booking_id
and tsr.supplied_resource_id = trb.supplied_resource_id;
select tfh.vendor_id
from ota_finance_headers tfh
where tfh.finance_header_id = p_finance_header_id;
select tdb.customer_id
, tdb.source_of_booking
from ota_resource_allocations tra
, ota_delegate_bookings tdb
where tra.resource_allocation_id = p_resource_allocation_id
and tdb.booking_id = tra.booking_id;
select tfh.customer_id
from ota_finance_headers tfh
where tfh.finance_header_id = p_finance_header_id;
select tdb.customer_id
, tdb.source_of_booking
from ota_delegate_bookings tdb
where tdb.booking_id = p_booking_id;
select tfh.customer_id
from ota_finance_headers tfh
where tfh.finance_header_id = p_finance_header_id;
select tbd.type
, tpl.price_list_type
from ota_booking_deals tbd
, ota_price_lists tpl
where tbd.booking_deal_id = p_booking_deal_id
and tpl.price_list_id (+) = tbd.price_list_id;
select type
from OTA_FINANCE_HEADERS
where finance_header_id = p_finance_header_id;
SELECT type
FROM ota_finance_headers
WHERE finance_header_id = p_finance_header_id;
Procedure check_update_attributes
(
p_transfer_status in varchar2
) is
--
v_proc varchar2(72) := g_package||'check_update_attributes';
fnd_message.set_name('OTA','OTA_13355_TFL_UPDATE');
End check_update_attributes;
select 'Y'
from ota_finance_lines tfl
where tfl.finance_header_id = p_finance_header_id
and tfl.sequence_number = p_sequence_number;
select nvl( max( tfl.sequence_number), 0)
from ota_finance_lines tfl
where tfl.finance_header_id = p_finance_header_id;
select tfh.date_raised
from ota_finance_headers tfh
where tfh.finance_header_id = p_finance_header_id;
Procedure check_delete_attempt
(
p_finance_header_id in number
,p_finance_line_id in number
) is
--
v_proc varchar2(72) := g_package||'check_delete_attempt';
fnd_message.set_name('OTA','OTA_13357_TFL_DELETE');
End check_delete_attempt;
select tfh.currency_code,tfh.type
from ota_finance_headers tfh
where tfh.finance_header_id = p_finance_header_id;
select evt.currency_code
from ota_delegate_bookings tdb
, ota_events evt
where tdb.booking_id = p_booking_id
and evt.event_id = tdb.event_id;
select tpl.currency_code
from ota_booking_deals tbd
, ota_price_lists tpl
where tbd.booking_deal_id = p_booking_deal_id
and tpl.price_list_id = tbd.price_list_id;
select evt.currency_code
from ota_resource_allocations tra
, ota_delegate_bookings tdb
, ota_events evt
where tra.resource_allocation_id = p_resource_allocation_id
and tdb.booking_id = tra.booking_id
and evt.event_id = tdb.event_id;
select tsr.currency_code
from ota_suppliable_resources tsr,
ota_resource_bookings trb
where tsr.supplied_resource_id = trb.supplied_resource_id
and trb.resource_booking_id = p_resource_booking_id;
/* select decode(evt.event_id,'',v_header_currency_code
,evt.currency_code)
from ota_resource_bookings trb
, ota_events evt
where trb.resource_booking_id = p_resource_booking_id
and evt.event_id(+) = trb.event_id;*/
select evt.currency_code
from ota_delegate_bookings tdb
, ota_events evt
where tdb.booking_id = p_booking_id
and evt.event_id = tdb.event_id;
select tpl.currency_code
from ota_booking_deals tbd
, ota_price_lists tpl
where tbd.booking_deal_id = p_booking_deal_id
and tpl.price_list_id = tbd.price_list_id;
select evt.currency_code
from ota_resource_allocations tra
, ota_delegate_bookings tdb
, ota_events evt
where tra.resource_allocation_id = p_resource_allocation_id
and tdb.booking_id = tra.booking_id
and evt.event_id = tdb.event_id;
select evt.currency_code
from ota_resource_bookings trb
, ota_events evt
where trb.resource_booking_id = p_resource_booking_id
and evt.event_id = trb.event_id;
select tfh.type,tfh.receivable_type
from ota_finance_headers tfh
where tfh.finance_header_id = p_finance_header_id;
select finance_line_id
from ota_finance_lines
where (p_finance_line_id is null
or p_finance_line_id <> finance_line_id)
and cancelled_flag = 'N'
and ((p_line_type = 'E' and
booking_id = p_booking_id)
or (p_line_type = 'R' and
resource_allocation_id = p_resource_allocation_id)
or (p_line_type = 'V' and
resource_booking_id = p_resource_booking_id));
select type
, customer_id
, vendor_id
, receivable_type
, transfer_status
, cancelled_flag
from ota_finance_headers
where finance_header_id = p_finance_header_id;
select 'Y'
from ota_finance_headers
where superceding_header_id = p_finance_header_id;
for the lines to be processed has already been updated with
Cancelled_flag = 'Y' and Transfer Status = 'ST' and
Superseded_flag = 'Y'. We therefore do not want to repeat checks on
these attributes.
*/
if p_check_successful_transfer then
hr_utility.trace('Superseded Flag = '||p_superseded_flag);