DBA Data[Home] [Help]

APPS.PA_AP_VAL_PKG dependencies on PA_DEDUCTIONS_ALL

Line 32: select 1 from pa_deductions_all

28: --in working,submitted statuses as well.
29:
30:
31: cursor check_cmt_exist(p_invoice_id ap_invoices_all.invoice_id%type) is
32: select 1 from pa_deductions_all
33: where not exists
34: (select 1 from ap_invoices_all
35: where source = 'Oracle Project Accounting'
36: AND invoice_type_lookup_code = 'DEBIT'

Line 37: AND product_table='PA_DEDUCTIONS_ALL'

33: where not exists
34: (select 1 from ap_invoices_all
35: where source = 'Oracle Project Accounting'
36: AND invoice_type_lookup_code = 'DEBIT'
37: AND product_table='PA_DEDUCTIONS_ALL'
38: and deduction_req_id = to_number(reference_key1))
39: and (vendor_id, project_id) in (select inv.vendor_id, apd.project_id
40: from ap_invoices_all inv, ap_invoice_distributions_all apd
41: where inv.invoice_id =p_invoice_id