AR aging 7 buckets report query
In this post , we will discuss about AR aging 7 buckets report query. AR aging 7 buckets report query helps to identify the Customer Pending Payments in terms of the Days. Aging reports helps to identify how old the customer Invoice due for the payment. This helps to identify and to decide my Invoice is due last 30 or Last 60 days for the payment and its still pending. Here below is the Complete AR aging 7 buckets report query in oracle apps which helps to know any customer due payments in terms of their invoices.
AR aging 7 buckets report query
select "Transaction Type Name",
party_name,
PARTY_SITE_NUMBER,
"Payment Terms",
gl_date ,
due_date,
total_days,
case when total_days>0 then amt_due_remaining end "Not Due Amount",
case when total_days between 1 and 30 then amt_due_remaining end "0 to 30",
case when total_days between 31 and 60 then amt_due_remaining end "31 to 60",
case when total_days between 61 and 90 then amt_due_remaining end "61 to 90",
case when total_days between 91 and 120 then amt_due_remaining end "91 to 120",
case when total_days > 120 then amt_due_remaining end " More than 120",
"Transaction Date",
"Transaction Number",
amount_due_original,
amt_due_remaining from (
select
RT.NAME "Transaction Type Name",
hp.party_name,
aps.due_date,
hps_bill.PARTY_SITE_NUMBER,
pt.name "Payment Terms",
aps.gl_date ,
to_date(:p_as_of_date)-aps.due_date total_days,
ra.trx_date "Transaction Date",
ra.trx_number "Transaction Number",
aps.amount_due_original,
(aps.amount_due_original
- nvl((SELECT SUM (NVL (ara.amount_applied, 0))
FROM ar_receivable_applications_all ara
WHERE ara.applied_customer_trx_id = aps.customer_trx_id
AND ara.display = 'Y'
AND TRUNC (ara.gl_date) <= :p_as_of_date ),0)
+ NVL(( SELECT sum(nvl(aaa.amount,0))
FROM ar_adjustments_all aaa
WHERE aaa.payment_schedule_id = aps.payment_schedule_id
AND aaa.gl_date <= :p_as_of_date ),0)
) amt_due_remaining ,
hc.ORIG_SYSTEM_REFERENCE "Orig_Sys_Bill_To_Cust_Ref",
hcasa_bill.ORIG_SYSTEM_REFERENCE "Orig_Sys_Bill_to_Cus_Add_Ref",
hc.ORIG_SYSTEM_REFERENCE "Orig_Sys_Ship_to_Cus_Acc_Ref",
hcasa_bill.ORIG_SYSTEM_REFERENCE "Orig_Ship_Cus_Acc_Add_Ref"
FROM ra_customer_trx_all ra,
ar_payment_schedules_all aps,
ra_cust_trx_types_all rt,
hz_cust_accounts hc,
hz_parties hp,
hz_cust_acct_sites_all hcasa_bill,
hz_cust_site_uses_all hcsua_bill,
hz_party_sites hps_bill,
ra_terms pt
WHERE 1 = 1
AND ra.TERM_ID = pt.TERM_ID(+)
AND ra.customer_trx_id = aps.customer_trx_id
AND ra.org_id = aps.org_id
AND ra.complete_flag = 'Y'
--AND rl.line_type IN ('FREIGHT', 'LINE')
AND ra.cust_trx_type_id = rt.cust_trx_type_id
AND ra.bill_to_customer_id = hc.cust_account_id
AND hc.status = 'A'
AND hp.party_id = hc.party_id
AND hcasa_bill.cust_account_id = ra.bill_to_customer_id
AND hcasa_bill.cust_acct_site_id = hcsua_bill.cust_acct_site_id
AND hcsua_bill.site_use_code = 'BILL_TO'
AND hcsua_bill.site_use_id = ra.bill_to_site_use_id
AND hps_bill.party_site_id = hcasa_bill.party_site_id
AND hcasa_bill.status = 'A'
AND hcsua_bill.status = 'A'
AND aps.amount_due_remaining <> 0
AND aps.status = 'OP'
AND aps.class != 'PMT'
AND aps.gl_date <=:p_as_of_date
and ra.org_id=:p_org_id
order by ra.trx_number)a1
7 comments:
Hey Really Thanks for sharing the best information regarding oracle,hope you will write more great blogs.
Oracle Fusion HCM Online Training
Thank you for sharing such a nice and interesting blog with us. I have seen that all will say the same thing repeatedly. But in your blog, I had a chance to get some useful and unique information.
Oracle Fusion SCM Online Training
Such a nice blog, I really like what you write in this blog, I also have some relevant Information about Best HR Training In Hyderabad | Hr training institute in Hyderabad! if you want more information.
Oracle Fusion Financials Training In Hyderabad
Could you please share Liability aging Report query for Ap(Vendor Aging) Report.based on as On date parameters.
Hi Sathish,
You can refer this post for Vendor Aging Report Query.
https://rpforacle.blogspot.com/2019/01/supplier-aging-report-query-in-oracle-apps-r12.html
Appreciate your work, helped me a lot!
Thank you so much............it was awesome to troubleshoot Aging report details.
Post a Comment