0% found this document useful (0 votes)
15 views1 page

Trial Balance Query

Trail Balance Query

Uploaded by

rakeesshnakade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Trial Balance Query

Trail Balance Query

Uploaded by

rakeesshnakade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

select * from (

SELECT aia.invoice_num, aia.description inv_description,aia.attribute2 "Dept",


aps.segment1 vendor#,
aps.vendor_name, aia.invoice_currency_code, aia.invoice_amount,tb.diff
Amount_Remain,
gcc.CONCATENATED_SEGMENTS ACCOUNT,
aia.invoice_type_lookup_code,
aia.invoice_date, aia.attribute5 status,
ap.NAME terms
FROM xla.xla_transaction_entities xte,
(SELECT tb.code_combination_id,
NVL (tb.applied_to_entity_id, tb.source_entity_id) entity_id,
SUM (NVL (tb.acctd_rounded_cr, 0)),
SUM (NVL (tb.acctd_rounded_dr, 0)),
SUM (NVL (tb.acctd_rounded_cr, 0)) - SUM (NVL
(tb.acctd_rounded_dr, 0)) diff,
party_id
FROM xla_trial_balances tb
WHERE tb.definition_code ='AP_200_1001'
and trunc(tb.gl_date) <=TO_DATE ('31-Mar-2025')
GROUP BY tb.code_combination_id,
NVL (tb.applied_to_entity_id, tb.source_entity_id),
tb.party_id
HAVING SUM (NVL (tb.acctd_rounded_cr, 0)) <> SUM (NVL
(tb.acctd_rounded_dr, 0))) tb,
ap_invoices_all aia,
ap_suppliers aps,
gl_code_combinations_kfv gcc,
ap_terms ap
WHERE tb.entity_id = xte.entity_id
AND xte.application_id =200--
AND xte.source_id_int_1 = aia.invoice_id
AND aia.vendor_id = aps.vendor_id
AND tb.code_combination_id = gcc.code_combination_id
AND ap.term_id = aia.terms_id
);

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy