DBA Data[Home] [Help]

APPS.AP_RECT_MATCH_PKG dependencies on AP_INVOICES

Line 167: G_invoice_type_lookup_code ap_invoices.invoice_type_lookup_code%TYPE;

163: G_period_name gl_period_statuses.period_name%TYPE;
164: G_set_of_books_id ap_system_parameters.set_of_books_id%TYPE;
165: G_awt_group_id ap_awt_groups.group_id%TYPE;
166: G_pay_awt_group_id ap_awt_groups.group_id%TYPE; --bug 9689194
167: G_invoice_type_lookup_code ap_invoices.invoice_type_lookup_code%TYPE;
168: G_exchange_rate ap_invoices.exchange_rate%TYPE;
169: G_precision fnd_currencies.precision%TYPE;
170: G_min_acct_unit fnd_currencies.minimum_accountable_unit%TYPE;
171: G_system_allow_awt_flag ap_system_parameters.allow_awt_flag%TYPE;

Line 168: G_exchange_rate ap_invoices.exchange_rate%TYPE;

164: G_set_of_books_id ap_system_parameters.set_of_books_id%TYPE;
165: G_awt_group_id ap_awt_groups.group_id%TYPE;
166: G_pay_awt_group_id ap_awt_groups.group_id%TYPE; --bug 9689194
167: G_invoice_type_lookup_code ap_invoices.invoice_type_lookup_code%TYPE;
168: G_exchange_rate ap_invoices.exchange_rate%TYPE;
169: G_precision fnd_currencies.precision%TYPE;
170: G_min_acct_unit fnd_currencies.minimum_accountable_unit%TYPE;
171: G_system_allow_awt_flag ap_system_parameters.allow_awt_flag%TYPE;
172: G_site_allow_awt_flag po_vendor_sites.allow_awt_flag%TYPE;

Line 177: G_invoice_currency_code ap_invoices.invoice_currency_code%TYPE;

173: G_transfer_flag ap_system_parameters.transfer_desc_flex_flag%TYPE;
174: G_allow_pa_override varchar2(1);
175: G_pa_expenditure_date_default varchar2(50);
176: G_base_currency_code ap_system_parameters.base_currency_code%TYPE;
177: G_invoice_currency_code ap_invoices.invoice_currency_code%TYPE;
178: G_prepay_ccid ap_system_parameters.prepay_code_combination_id%TYPE;
179: G_Build_Prepay_Accts_Flag ap_system_parameters.build_prepayment_accounts_flag%TYPE;
180: G_income_tax_region ap_system_parameters.income_tax_region%TYPE;
181: G_project_id pa_projects_all.project_id%TYPE;

Line 184: G_invoice_date ap_invoices.invoice_date%TYPE;

180: G_income_tax_region ap_system_parameters.income_tax_region%TYPE;
181: G_project_id pa_projects_all.project_id%TYPE;
182: G_task_id pa_tasks.task_id%TYPE;
183: G_expenditure_type pa_expenditure_types.expenditure_type%TYPE;
184: G_invoice_date ap_invoices.invoice_date%TYPE;
185: G_expenditure_organization_id pa_exp_orgs_it.organization_id%TYPE;
186: G_asset_book_type_code fa_book_controls.book_type_code%TYPE;
187: G_inventory_organization_id financials_system_parameters.inventory_organization_id%TYPE;
188: G_allow_account_override ap_system_parameters.allow_flex_override_flag%TYPE;

Line 192: --G_Ussgl_Transaction_Code ap_invoices.ussgl_transaction_code%TYPE; - Bug 4277744

188: G_allow_account_override ap_system_parameters.allow_flex_override_flag%TYPE;
189: G_encumbrance_flag financials_system_parameters.purch_encumbrance_flag%TYPE;
190: G_match_option po_line_locations.match_option%TYPE;
191: G_approval_workflow_flag ap_system_parameters.approval_workflow_flag%TYPE;
192: --G_Ussgl_Transaction_Code ap_invoices.ussgl_transaction_code%TYPE; - Bug 4277744
193: G_login_id number;
194: G_User_id number;
195: G_Account_Segment ap_invoice_lines.account_segment%TYPE := NULL;
196: G_Balancing_Segment ap_invoice_lines.balancing_segment%TYPE := NULL;

Line 206: G_Award_Id ap_invoices.award_id%TYPE;

202: G_Line_Award_id ap_invoice_lines.award_id%TYPE;
203: G_Line_Expenditure_Type ap_invoice_lines.expenditure_type%TYPE ;
204: G_Line_Expenditure_Item_Date ap_invoice_lines.expenditure_item_date%TYPE ;
205: G_Line_Expenditure_Org_Id ap_invoice_lines.expenditure_organization_id%TYPE ;
206: G_Award_Id ap_invoices.award_id%TYPE;
207: G_Line_Base_Amount ap_invoice_lines.base_amount%TYPE ;
208: G_Line_Awt_Group_Id ap_invoice_lines.awt_group_id%TYPE ;
209: G_Line_Pay_Awt_Group_Id ap_invoice_lines.pay_awt_group_id%TYPE ; --bug 9689194
210: G_Line_Accounting_Date ap_invoice_lines.accounting_date%TYPE;

Line 211: G_Org_Id ap_invoices.org_id%TYPE;

207: G_Line_Base_Amount ap_invoice_lines.base_amount%TYPE ;
208: G_Line_Awt_Group_Id ap_invoice_lines.awt_group_id%TYPE ;
209: G_Line_Pay_Awt_Group_Id ap_invoice_lines.pay_awt_group_id%TYPE ; --bug 9689194
210: G_Line_Accounting_Date ap_invoice_lines.accounting_date%TYPE;
211: G_Org_Id ap_invoices.org_id%TYPE;
212: G_Trx_Business_Category ap_invoices.trx_business_category%TYPE;
213:
214: --Contract Payments
215: G_Shipment_Type po_line_locations_all.shipment_type%TYPE;

Line 212: G_Trx_Business_Category ap_invoices.trx_business_category%TYPE;

208: G_Line_Awt_Group_Id ap_invoice_lines.awt_group_id%TYPE ;
209: G_Line_Pay_Awt_Group_Id ap_invoice_lines.pay_awt_group_id%TYPE ; --bug 9689194
210: G_Line_Accounting_Date ap_invoice_lines.accounting_date%TYPE;
211: G_Org_Id ap_invoices.org_id%TYPE;
212: G_Trx_Business_Category ap_invoices.trx_business_category%TYPE;
213:
214: --Contract Payments
215: G_Shipment_Type po_line_locations_all.shipment_type%TYPE;
216: G_Vendor_Id ap_invoices.vendor_id%TYPE;

Line 216: G_Vendor_Id ap_invoices.vendor_id%TYPE;

212: G_Trx_Business_Category ap_invoices.trx_business_category%TYPE;
213:
214: --Contract Payments
215: G_Shipment_Type po_line_locations_all.shipment_type%TYPE;
216: G_Vendor_Id ap_invoices.vendor_id%TYPE;
217: G_Vendor_Site_Id ap_invoices.vendor_site_id%TYPE;
218: G_Po_Line_Id po_lines_all.po_line_id%TYPE;
219: G_Recoupment_Rate po_lines_all.recoupment_rate%TYPE;
220:

Line 217: G_Vendor_Site_Id ap_invoices.vendor_site_id%TYPE;

213:
214: --Contract Payments
215: G_Shipment_Type po_line_locations_all.shipment_type%TYPE;
216: G_Vendor_Id ap_invoices.vendor_id%TYPE;
217: G_Vendor_Site_Id ap_invoices.vendor_site_id%TYPE;
218: G_Po_Line_Id po_lines_all.po_line_id%TYPE;
219: G_Recoupment_Rate po_lines_all.recoupment_rate%TYPE;
220:
221: --Bugfix:5565310

Line 229: G_source ap_invoices_all.source%type;

225: G_product_fisc_class zx_lines_det_factors.product_fisc_classification%type;
226: G_user_defined_fisc_class zx_lines_det_factors.user_defined_fisc_class%type;
227: G_assessable_value zx_lines_det_factors.assessable_value%type;
228: G_dflt_tax_class_code zx_transaction_lines_gt.input_tax_classification_code%type;
229: G_source ap_invoices_all.source%type;
230:
231:
232: PROCEDURE Base_Credit_RCV_Match(
233: X_match_mode IN VARCHAR2,

Line 283: l_product_org_id ap_invoices.org_id%TYPE;

279: l_po_line_location_id po_line_locations.line_location_id%TYPE;
280: l_dummy number;
281:
282: -- bug 8483345: start
283: l_product_org_id ap_invoices.org_id%TYPE;
284: l_allow_tax_code_override varchar2(10);
285: l_dflt_tax_class_code zx_transaction_lines_gt.input_tax_classification_code%type;
286: -- bug 8483345: end
287:

Line 382: p_entity_code => 'AP_INVOICES',

378: APPL_SHORT_NAME => 'SQLAP',
379: FUNC_SHORT_NAME => 'NONE',
380: p_calling_sequence => 'AP_ETAX_SERVICES_PKG',
381: p_event_class_code => l_ref_doc_event_class_code,
382: p_entity_code => 'AP_INVOICES',
383: p_application_id => 200,
384: p_internal_organization_id => g_org_id);
385: -- bug 8483345: end
386:

Line 829: l_accounting_date ap_invoices_all.gl_date%TYPE;

825: X_Po_Line_Location_Id IN NUMBER,
826: X_Calling_Sequence IN VARCHAR2 ) IS
827:
828: current_calling_sequence VARCHAR2(2000);
829: l_accounting_date ap_invoices_all.gl_date%TYPE;
830: l_debug_info VARCHAR2(2000);
831: l_api_name VARCHAR2(32);
832: BEGIN
833:

Line 913: FROM ap_invoices_all ai ,

909: g_vendor_site_id,
910: g_source,
911: g_pay_awt_group_id --bug 9689194
912: /* Bug 5572876, using base tables */
913: FROM ap_invoices_all ai ,
914: ap_system_parameters_all asp,
915: ap_suppliers pv,
916: ap_supplier_sites_all pvs,
917: financials_system_params_all fsp,

Line 1904: l_source AP_INVOICES_ALL.SOURCE%TYPE ; -- Bug 9160534

1900:
1901: current_calling_sequence VARCHAR2(2000);
1902: l_debug_info VARCHAR2(2000);
1903: l_api_name VARCHAR2(4000);
1904: l_source AP_INVOICES_ALL.SOURCE%TYPE ; -- Bug 9160534
1905: l_full_mtch_amt NUMBER; --Bug13505998
1906:
1907: BEGIN
1908:

Line 1937: from ap_invoices_all ai

1933: --from PO.
1934:
1935: -- Bug 9160534. Start
1936: select nvl(ai.source, 'DUMMY') into l_source
1937: from ap_invoices_all ai
1938: where ai.invoice_id = X_Invoice_Id;
1939: -- Bug 9160534. End
1940:
1941: INSERT INTO AP_INVOICE_LINES

Line 4543: FROM ap_invoices ai,

4539: AIL.PRODUCT_CATEGORY, --product_category
4540: AIL.USER_DEFINED_FISC_CLASS, --user_defined_fisc_class
4541: G_PAY_AWT_GROUP_ID, --bug 9689194
4542: AIL.RCV_SHIPMENT_LINE_ID /*BUG :15946088*/
4543: FROM ap_invoices ai,
4544: ap_invoice_lines ail,
4545: po_line_locations_ap_v pll
4546: WHERE ai.invoice_id = x_corrected_invoice_id
4547: AND ail.invoice_id = ai.invoice_id