27: WHERE agreement_id = cp_agreement_id;
28:
29: CURSOR c_get_functional_currency(cp_org_id fun_net_batches_all.org_id%TYPE) IS
30: SELECT l.currency_code
31: FROM gl_ledgers l,hr_operating_units ou
32: WHERE ou.organization_id = cp_org_id
33: AND ou.set_of_books_id = l.ledger_id;
34:
35: CURSOR c_get_ap_invoices(cp_agreement_id fun_net_agreements_all.agreement_id%TYPE) IS