0% found this document useful (0 votes)
17 views

Class 4 Order To Cash Cycle Part 4 Class Notes

The document discusses accounting entries for invoices and credit memos, tables related to accounting entries, and queries to link transactions between accounts receivable, general ledger, and order management modules.

Uploaded by

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

Class 4 Order To Cash Cycle Part 4 Class Notes

The document discusses accounting entries for invoices and credit memos, tables related to accounting entries, and queries to link transactions between accounts receivable, general ledger, and order management modules.

Uploaded by

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

Invoice

Credit memo

Accounting entries

DR- Receivable

Cr- REvenune and tax

Tables

--OAF page (oracle application frame work)

Xla_ae_headers

Xla_ae_lines

Xla_events

Xla_distribution_links

Xla_transaction_entities

Errors – xla_distribution_links

Receipt

ar_cash_receipts acr,
ar_receivable_applications_all

ar_payment_schedules_all

link between ar invoice and ar receipt

SELECT receipt_number, rcta.trx_number, app.amount_applied,


ps_inv.amount_due_original, ps_inv.amount_due_remaining,
ps_inv.due_date
FROM ar_cash_receipts acr,
ar_receivable_applications_all app,
ra_customer_trx_all rcta,
ar_payment_schedules ps_inv
WHERE receipt_number = '8888'
AND app.cash_receipt_id = acr.cash_receipt_id
AND rcta.customer_trx_id = app.applied_customer_trx_id
AND rcta.customer_trx_id = ps_inv.customer_trx_id

Create accounting
Draft,final,final post to gl

Debit – cash account

Credit – receivable

Transfer to gl

GL_JE_HEADERS

GL_JE_LINES

GL_JE_BATCHES

Gl_balances

Om AR SLA GL link query /drill down query

SELECT ctt.cust_trx_type_id, lgd.set_of_books_id, lgd.amount gl_posted_amount,


ctl.extended_amount ar_trx_amount, ctl.description inv_item_desc,
gcc.segment1
|| '.'
|| gcc.segment2
|| '.'
|| gcc.segment3
|| '.'
|| gcc.segment4
|| '.'
|| gcc.segment5
|| '.'
|| gcc.segment6
|| '.'
|| gcc.segment7
|| '.'
|| gcc.segment8 gl_account,
gp.period_name, cta.trx_number trx_number,
ctl.interface_line_attribute1 sales_order_number,
ll.line_number sales_order_line_number, ctt.NAME transaction_type,
xdl.unrounded_accounted_cr,
xdl.unrounded_accounted_dr, xdl.unrounded_entered_cr,
xdl.unrounded_entered_dr, xal.gl_sl_link_id,
h.je_category journal_category, h.je_source journal_source,
l.accounted_cr je_lines_accounted_cr,
l.accounted_dr je_lines_accounted_dr,
l.description je_lines_description, l.entered_cr je_lines_entered_cr,
l.entered_dr je_lines_entered_dr, h.NAME journal_name,
b.NAME journal_batch_name, l.je_line_num journal_line_number
FROM ra_cust_trx_line_gl_dist_all lgd,
ra_customer_trx_lines_all ctl,
gl_code_combinations gcc,
gl_periods gp,
oe_order_headers_all h,
oe_order_lines_all ll,
ra_customer_trx_all cta,
ra_cust_trx_types_all ctt, -- XLA Tables
xla_distribution_links xdl,
xla_ae_lines xal,
xla_ae_headers xah,
xla_events xle,
xla_transaction_entities xte, -- GL Tables
gl_code_combinations_kfv glcc,
gl_import_references gir,
gl_je_headers h,
gl_je_lines l,
gl_je_batches b
WHERE lgd.customer_trx_line_id = ctl.customer_trx_line_id
AND lgd.code_combination_id = gcc.code_combination_id
-- AND lgd.gl_posted_date BETWEEN '15-DEC-2015' AND '16-DEC-2015'
AND lgd.org_id = 204
AND gp.period_name = 'Oct-20'
AND lgd.gl_posted_date BETWEEN gp.start_date AND gp.end_date
AND cta.cust_trx_type_id = ctt.cust_trx_type_id
AND cta.customer_trx_id = lgd.customer_trx_id
AND ctl.interface_line_attribute1 = TO_CHAR (h.order_number)
AND ctl.interface_line_attribute6 = TO_CHAR (ll.line_id)
AND xdl.source_distribution_type = 'RA_CUST_TRX_LINE_GL_DIST_ALL'
AND lgd.cust_trx_line_gl_dist_id = xdl.source_distribution_id_num_1
AND lgd.code_combination_id = xal.code_combination_id
AND xal.code_combination_id = glcc.code_combination_id
AND xdl.event_id = xle.event_id
AND xdl.event_id = xah.event_id
AND xdl.ae_header_id = xah.ae_header_id
AND xdl.ae_header_id = xal.ae_header_id
AND xah.entity_id = xte.entity_id(+)
AND xal.gl_sl_link_id = gir.gl_sl_link_id
AND xal.gl_sl_link_table = gir.gl_sl_link_table
AND h.je_batch_id = b.je_batch_id
AND l.je_header_id = h.je_header_id
AND l.je_line_num = gir.je_line_num
AND l.je_header_id = gir.je_header_id
AND cta.trx_number = '10047320'

1) Gl- sla
Gl – gl_import_reference – xla_ae_lines

AND xal.gl_sl_link_id = gir.gl_sl_link_id


AND xal.gl_sl_link_table = gir.gl_sl_link_table
2) Xla to ar
xla_distribution_links

ra_cust_trx_line_gl_dist_all lgd

AND lgd.cust_trx_line_gl_dist_id = xdl.source_distribution_id_num_1


3) Ar to om
Oe_order_headers_all
Oe_order_lines_all
Ra_customer_trx_all
AND ctl.interface_line_attribute1 = TO_CHAR (h.order_number)
AND ctl.interface_line_attribute6 = TO_CHAR (ll.line_id)

You might also like