Investor Payables Consolidation program - OKL_CNSLD_XFER_AP_PVT. xfer_ap_invs - org strip issue
We are seeing an issue in the code currently for the Investor Payables Consolidation program in 11.5.10.2 release.
OKL_CNSLD_XFER_AP_PVT. xfer_ap_invs
The above function has a cursor (below) which is not org specific.
Below is the cursor, and invoice number is the input here, which is not org specific and hence in below query, it returns data from multiple orgs and hence the issue.
CURSOR l_inv_lines_csr(cp_invoice_num IN VARCHAR2) IS select hdr.invoice_num
--,hdr.accounting_date
,dtl.amount
,dtl.dist_code_combination_id
FROM (select min(invoice_num) invoice_num