DBA Data[Home] [Help]

APPS.OKL_INTEREST_CALC_PVT dependencies on OKL_CNSLD_AP_INVS_ALL

Line 375: -- sjalasut, modified the cursor to refer consolidated invoice id from okl_cnsld_ap_invs_all

371: AND rgp.rgd_code = 'LAPREF'
372: AND rgp.chr_id = p_chr_id;
373:
374: -- Changed the select statementby Santonyr on 04-Aug-2004 to improve the performance
375: -- sjalasut, modified the cursor to refer consolidated invoice id from okl_cnsld_ap_invs_all
376: -- added okl_txl_ap_inv_lns_all_b in the from clause as khr_id now moves to the
377: -- transaction line level.
378: -- changes made as part of OKLR12B disbursements project.
379: CURSOR change_csr(v_khr_id NUMBER,

Line 386: okl_cnsld_ap_invs_all okl_cnsld,

382: v_name OKL_INDICES.NAME%TYPE) IS
383: SELECT ac.check_date change_date
384: FROM OKL_TRX_AP_INVOICES_B oklinv,
385: okl_txl_ap_inv_lns_all_b tpl,
386: okl_cnsld_ap_invs_all okl_cnsld,
387: AP_INVOICES inv,
388: AP_INVOICE_PAYMENTS pay,
389: AP_CHECKS AC,
390: fnd_application fnd_app

Line 396: AND inv.product_table = 'OKL_CNSLD_AP_INVS_ALL'

392: AND tpl.khr_id = v_khr_id
393: AND tpl.cnsld_ap_inv_id = okl_cnsld.cnsld_ap_inv_id
394: AND inv.application_id = fnd_app.application_id
395: AND fnd_app.application_short_name = 'OKL'
396: AND inv.product_table = 'OKL_CNSLD_AP_INVS_ALL'
397: AND okl_cnsld.cnsld_ap_inv_id = to_number(inv.reference_key1)
398: AND oklinv.funding_type_code = 'PREFUNDING'
399: --Bug# 10628703
400: --AND oklinv.vendor_invoice_number = inv.invoice_num -- sjalasut, is this required now?

Line 419: -- okl consolidation table okl_cnsld_ap_invs_all to join the consolidated invoices

415:
416: -- Changed the select statement by Santonyr on 04-Aug-2004 to improve the performance
417: -- sjalasut, modified the below cursor to have included okl_txl_ap_inv_lns_all_b
418: -- so that khr_id now refers from this table and also introduced the new
419: -- okl consolidation table okl_cnsld_ap_invs_all to join the consolidated invoices
420: -- from the transaction lines table.
421: CURSOR princ_csr(v_date IN DATE, v_khr_id IN NUMBER) IS
422: SELECT SUM(pay.amount)
423: FROM OKL_TRX_AP_INVOICES_B oklinv,

Line 425: okl_cnsld_ap_invs_all okl_cnsld,

421: CURSOR princ_csr(v_date IN DATE, v_khr_id IN NUMBER) IS
422: SELECT SUM(pay.amount)
423: FROM OKL_TRX_AP_INVOICES_B oklinv,
424: okl_txl_ap_inv_lns_all_b okl_inv_ln,
425: okl_cnsld_ap_invs_all okl_cnsld,
426: AP_INVOICES inv,
427: AP_INVOICE_PAYMENTS pay,
428: AP_CHECKS AC,
429: fnd_application fnd_app

Line 435: AND inv.product_table = 'OKL_CNSLD_AP_INVS_ALL'

431: AND okl_inv_ln.khr_id = v_khr_id
432: AND okl_inv_ln.cnsld_ap_inv_id = okl_cnsld.cnsld_ap_inv_id
433: AND inv.application_id = fnd_app.application_id
434: AND fnd_app.application_short_name = 'OKL'
435: AND inv.product_table = 'OKL_CNSLD_AP_INVS_ALL'
436: AND okl_cnsld.cnsld_ap_inv_id = to_number(inv.reference_key1)
437: AND oklinv.funding_type_code = 'PREFUNDING'
438: --Bug# 10628703
439: --AND oklinv.vendor_invoice_number = inv.invoice_num -- sjalasut, is this required now?

Line 744: -- okl consolidation table okl_cnsld_ap_invs_all to join the consolidated invoices

740: -- Changed the invoice_number to vendor_invoice_number in the where condition
741: -- Changed the select statement by Santonyr on 04-Aug-2004 to improve the performance
742: -- sjalasut, modified the below cursor to have included okl_txl_ap_inv_lns_all_b
743: -- so that khr_id now refers from this table and also introduced the new
744: -- okl consolidation table okl_cnsld_ap_invs_all to join the consolidated invoices
745: -- from the transaction lines table.
746: CURSOR fund_csr(v_khr_id NUMBER) IS
747: SELECT MIN(ac.check_date)
748: FROM OKL_TRX_AP_INVOICES_B oklinv,

Line 750: okl_cnsld_ap_invs_all okl_cnsld,

746: CURSOR fund_csr(v_khr_id NUMBER) IS
747: SELECT MIN(ac.check_date)
748: FROM OKL_TRX_AP_INVOICES_B oklinv,
749: okl_txl_ap_inv_lns_all_b okl_inv_ln,
750: okl_cnsld_ap_invs_all okl_cnsld,
751: AP_INVOICES inv,
752: AP_INVOICE_PAYMENTS pay,
753: AP_CHECKS AC,
754: fnd_application fnd_app

Line 760: AND inv.product_table = 'OKL_CNSLD_AP_INVS_ALL'

756: AND okl_inv_ln.khr_id = v_khr_id
757: AND okl_inv_ln.cnsld_ap_inv_id = okl_cnsld.cnsld_ap_inv_id
758: AND inv.application_id = fnd_app.application_id
759: AND fnd_app.application_short_name = 'OKL'
760: AND inv.product_table = 'OKL_CNSLD_AP_INVS_ALL'
761: AND okl_cnsld.cnsld_ap_inv_id = to_number(inv.reference_key1)
762: AND oklinv.funding_type_code = 'PREFUNDING'
763: --Bug# 10628703
764: --AND oklinv.vendor_invoice_number = inv.invoice_num -- sjalasut, is this required now?

Line 1012: okl_cnsld_ap_invs_all okl_cnsld,

1008: CURSOR fund_csr(v_khr_id NUMBER) IS
1009: SELECT MIN(ac.check_date)
1010: FROM OKL_TRX_AP_INVOICES_B oklinv,
1011: okl_txl_ap_inv_lns_all_b okl_inv_ln,
1012: okl_cnsld_ap_invs_all okl_cnsld,
1013: AP_INVOICES inv,
1014: AP_INVOICE_PAYMENTS pay,
1015: AP_CHECKS AC,
1016: fnd_application fnd_app

Line 1022: AND inv.product_table = 'OKL_CNSLD_AP_INVS_ALL'

1018: AND okl_inv_ln.khr_id = v_khr_id
1019: AND okl_inv_ln.cnsld_ap_inv_id = okl_cnsld.cnsld_ap_inv_id
1020: AND inv.application_id = fnd_app.application_id
1021: AND fnd_app.application_short_name = 'OKL'
1022: AND inv.product_table = 'OKL_CNSLD_AP_INVS_ALL'
1023: AND okl_cnsld.cnsld_ap_inv_id = to_number(inv.reference_key1)
1024: AND oklinv.funding_type_code = 'PREFUNDING'
1025: --Bug# 10628703
1026: --AND oklinv.vendor_invoice_number = inv.invoice_num -- sjalasut, is this required now?