The following lines contain the word 'select', 'insert', 'update' or 'delete':
select 1 into l_invoice_id from dual
where not exists ( select invoice_id from jai_ap_tds_invoices where invoice_id = P_INVOICE_ID ); -- :inv_sum_folder.invoice_id
select
0
into
l_invoice_id
from
ap_invoices_all
where source = 'INDIA TDS'
and invoice_num like '%TDS%'
and invoice_id = P_INVOICE_ID;
select 1 into v_misc_line from dual
where exists (select 1 from ap_invoice_lines ap, jai_ap_invoice_lines jap
where jap.invoice_id = P_INVOICE_ID --:INV_SUM_FOLDER.INVOICE_ID
and jap.line_type_lookup_code = P_LOOKUP_CODE --:LINE_SUM_FOLDER.LINE_TYPE_LOOKUP_CODE
and jap.invoice_line_number = P_LINE_NUMBER --:LINE_SUM_FOLDER.LINE_NUMBER
and ap.invoice_id = jap.invoice_id
and jap.line_type_lookup_code ='MISCELLANEOUS'
and jap.invoice_line_number = ap.line_number);
select 1 into v_check from dual
where exists ( select 1 from jai_ap_invoice_lines jp where jp.invoice_id = P_INVOICE_ID and line_type_lookup_code ='MISCELLANEOUS' );
select tax_category_id from jai_ap_invoice_lines
where invoice_id =p_invoice_id
and invoice_line_number =p_line_number
and LINE_TYPE_LOOKUP_CODE = 'ITEM';
select tax_category_id from jai_cmn_vendor_sites where vendor_id =p_supplier_id
and vendor_site_id = p_supplier_site_id;