Oracle Apps Dunning Configuration
Oracle Apps Dunning Configuration
dunning_id=:DUNNING_ID) currsysdate,
per.person_last_name last_name,
org.party_name org_name,
loc.address1 address1,
loc.address2 address2,
loc.city city,
loc.state state,
loc.postal_code postal_code,
per.person_first_name first_name1,
(select sum(aps.acctd_amount_due_remaining)
from
iex_delinquencies_all dd,
ar_payment_schedules_all aps
where
rs.source_name collector_name,
rs.source_job_title collector_title,
rs.source_phone collector_phone,
CURSOR
(select
ct.trx_number invoice_number,
ar.amount_due_remaining amount_due_remaining,
ct.invoice_currency_code invoice_currency_code,
ar.acctd_amount_due_remaining acctd_amount_due_remaining,
gl.currency_code functional_currency,
CT.PURCHASE_ORDER CUST_PO,
from
iex_delinquencies_all d,
ar_payment_schedules_all ar,
ra_customer_trx_all ct,
ar_system_parameters_all ars,
gl_sets_of_books gl
where
d.party_cust_id = org.party_id
and ars.set_of_books_id=gl.set_of_books_id
) as payment_history,
loc.location_id,per.party_id,rs.RESOURCE_ID
from
HZ_LOCATIONS loc
,hz_parties org
,hz_parties per
,jtf_rs_resource_extns rs
where
loc.location_id = :LOCATION_ID