Sunteți pe pagina 1din 1

Creating Invoice

1. When you create an invoice, data flows to RA_CUSTOMER_TRX_ALL table. You can search with
TRX_NUMBER
select * from RA_CUSTOMER_TRX_ALL where TRX_NUMBER =
Fetched CUSTOMER_TRX_ID ---

2. Untill you enter lines for the invoice there will not be any related records in
RA_CUSTOMER_TRX_LINES_ALL

3. Once you enter lines for the incoice data flows into RA_CUSTOMER_TRX_LINES_ALL.
You can search with the CUSTOMER_TRX_ID that you get from RA_CUSTOMER_TRX_ALL table for the
entered invoice Number
select * from RA_CUSTOMER_TRX_LINES_ALL where CUSTOMER_TRX_ID=

4. Data also goes into ar_payment_schedules_al. Query with the CUSTOMER_TRX_ID


5. Click on Complete button. The invoice gets completed. In RA_CUSTOMER_TRX_ALL table the
COMPLETE_FLAG turns to ‘Y’

Creating Receipts
1. When you create a new receipt the data flows into
a. ar_cash_receipts_all table. You can query with receipt_number. Get CASH_RECEIPT_ID.
select * from ar_cash_receipts_all where receipt_number=
fetched CASH_RECEIPT_ID=
b. AR_CASH_RECEIPT_HISTORY_ALL table. you can query with the CASH_RECEIPT_ID fetched
from the above query.
select * from apps.AR_CASH_RECEIPT_HISTORY_ALL where CASH_RECEIPT_ID=
c. AR_RECEIVABLE_APPLICATIONS_ALL table you can query with the CASH_RECEIPT_ID fetched
from the above query.
d. ar_payment_schedules_all--- an new row is inserted with the class as ‘PMT’ and
amount_due_original as negative, status as ‘OP’ .The trx_number has the receipt number.
Query using the CASH_RECEIPT_ID fetched from the above query.

Apply the receipt to the invoice.

Invoice of was applied and saved

Tables affected
a. ar_cash_receipts_all--- attribute 13, Attribute 14, attribute 15 gets updated.
b. AR_RECEIVABLE_APPLICATIONS_ALL—query with CASH_RECEIPT_ID. 2 more records are inserted.
APPLIED_CUSTOMER_TRX_ID---- is the CUSTOMER_TRX_ID of the invoice.
APPLIED_PAYMENT_SCHEDULE_ID--- is the payment schedule id of the invoice that is applied.
c. ar_payment_schedules_all---The existing records of invoice and the receipts are updated.
Changes to the invoice Record:
Amount_due_remaining becomes0 if the invoice amount is fully met
Status is changed from OP to CL
Changes to the receipt Record:
i. amount_due_remaining is recalculated after subtracting the invoice amount from the
amount_due_original.
ii. The amount_applied gets updated

S-ar putea să vă placă și