Need a Query to show supplier opening balances
Hi,
I got a requirement to show the below details in a report payables module.
Accounting period is a parameter
How we get the opening balance and closing balance for supplier?
Supplier Name
Opening Balance
dr transactions
cr transactions
closing balance.
I am using the below query. Kindly help me on this
SELECT DISTINCT aps.vendor_name "Vendor Name", | ||
xal.accounted_dr "Accounted DR IN SLA", | ||
xal.accounted_cr "Accounted CR IN SLA", | ||
--(nvl(gjl.accounted_dr,0) - nvl(gjl.accounted_cr,0)) | ||
FROM ap_invoices_all aia, | ||
xla.xla_transaction_entities xte, | ||
xla_events xev, | ||
xla_ae_headers xah, |