You are on page 1of 2

SELECT AR_RECEIVABLE_APPLICATIONS_ALL.RECEIVABLE_APPLICATION_ID, AR_RECEIVABLE_APPLICATIONS_ALL.LAST_UPDATED_BY, AR_RECEIVABLE_APPLICATIONS_ALL.LAST_UPDATE_DATE, AR_RECEIVABLE_APPLICATIONS_ALL.CREATED_BY, AR_RECEIVABLE_APPLICATIONS_ALL.

CREATION_DATE, AR_RECEIVABLE_APPLICATIONS_ALL.GL_DATE, AR_DISTRIBUTIONS_ALL.CODE_COMBINATION_ID, AR_RECEIVABLE_APPLICATIONS_ALL.SET_OF_BOOKS_ID, AR_RECEIVABLE_APPLICATIONS_ALL.APPLY_DATE, AR_RECEIVABLE_APPLICATIONS_ALL.STATUS, AR_RECEIVABLE_APPLICATIONS_ALL.CASH_RECEIPT_ID, AR_RECEIVABLE_APPLICATIONS_ALL.APPLIED_CUSTOMER_TRX_ID, AR_RECEIVABLE_APPLICATIONS_ALL.GL_POSTED_DATE, AR_RECEIVABLE_APPLICATIONS_ALL.ORG_ID, AR_CASH_RECEIPTS_ALL.CURRENCY_CODE, AR_CASH_RECEIPTS_ALL.PAY_FROM_CUSTOMER, AR_CASH_RECEIPTS_ALL.RECEIPT_NUMBER, AR_CASH_RECEIPTS_ALL.RECEIPT_DATE, CE_BANK_ACCT_USES_ALL.BANK_ACCOUNT_ID REMITTANCE_BANK_ACCOUNT_ID, AR_CASH_RECEIPTS_ALL.CUSTOMER_SITE_USE_ID, AR_CASH_RECEIPTS_ALL.RECEIPT_METHOD_ID, AR_CASH_RECEIPTS_ALL.LAST_UPDATE_DATE, RA_CUSTOMER_TRX_ALL.CUSTOMER_TRX_ID, RA_CUSTOMER_TRX_ALL.TRX_NUMBER, RA_CUSTOMER_TRX_ALL.CUST_TRX_TYPE_ID, RA_CUSTOMER_TRX_ALL.TRX_DATE, RA_CUSTOMER_TRX_ALL.BILL_TO_CONTACT_ID, RA_CUSTOMER_TRX_ALL.SOLD_TO_SITE_USE_ID, RA_CUSTOMER_TRX_ALL.BILL_TO_CUSTOMER_ID, RA_CUSTOMER_TRX_ALL.BILL_TO_SITE_USE_ID, RA_CUSTOMER_TRX_ALL.SHIP_TO_SITE_USE_ID, RA_CUSTOMER_TRX_ALL.TERM_ID, RA_CUSTOMER_TRX_ALL.PRIMARY_SALESREP_ID, RA_CUSTOMER_TRX_ALL.PURCHASE_ORDER, RA_CUSTOMER_TRX_ALL.TERRITORY_ID, RA_CUSTOMER_TRX_ALL.INTERFACE_HEADER_ATTRIBUTE1, RA_CUSTOMER_TRX_ALL.INTERFACE_HEADER_CONTEXT, RA_CUSTOMER_TRX_ALL.PAYING_SITE_USE_ID, RA_CUSTOMER_TRX_ALL.LAST_UPDATE_DATE, AR_PAYMENT_SCHEDULES_ALL.PAYMENT_SCHEDULE_ID, AR_PAYMENT_SCHEDULES_ALL.DUE_DATE, AR_PAYMENT_SCHEDULES_ALL.STATUS, AR_PAYMENT_SCHEDULES_ALL.LAST_UPDATE_DATE, AR_PAYMENT_SCHEDULES_ALL.PAYMENT_SCHEDULE_ID, AR_PAYMENT_SCHEDULES_ALL.DUE_DATE, AR_PAYMENT_SCHEDULES_ALL.STATUS, AR_PAYMENT_SCHEDULES_ALL.CUSTOMER_SITE_USE_ID, AR_PAYMENT_SCHEDULES_ALL.LAST_UPDATE_DATE, AR_DISTRIBUTIONS_ALL.LINE_ID, AR_DISTRIBUTIONS_ALL.AMOUNT_DR, AR_DISTRIBUTIONS_ALL.AMOUNT_CR, AR_DISTRIBUTIONS_ALL.ACCTD_AMOUNT_DR, AR_DISTRIBUTIONS_ALL.ACCTD_AMOUNT_CR, AR_CASH_RECEIPTS_ALL.LEGAL_ENTITY_ID, RA_CUSTOMER_TRX_ALL.INTERFACE_HEADER_ATTRIBUTE1 AS PROJ_NUM, AR_PAYMENT_SCHEDULES_ALL.DISPUTE_DATE, AR_PAYMENT_SCHEDULES_ALL.AMOUNT_IN_DISPUTE, RA_CUSTOMER_TRX_ALL.REASON_CODE FROM

APPLIED_CUSTOMER_TRX_ID LEFT OUTER JOIN AR_PAYMENT_SCHEDULES_ALL ON AR_PAYMENT_SCHEDULES_ALL.SOURCE_TYPE IN ('REC'.REMIT_BANK_ACCT_USE_ID = CE_BANK_ACCT_USES_ALL.PAYMENT_SCHEDULE_ID LEFT OUTER JOIN RA_CUSTOMER_TRX_ALL ON RA_CUSTOMER_TRX_ALL. 'UNAPP'.BANK_ACCT_US E_ID AND AR_DISTRIBUTIONS_ALL.PAYMENT_SCH EDULE_ID = AR_RECEIVABLE_APPLICATIONS_ALL.RECEIVABLE_APP LICATION_ID = AR_DISTRIBUTIONS_ALL.SOURCE_TABLE = 'RA' AND AR_DISTRIBUTIONS_ALL. 'Y') = 'Y' . 'ACC'.APPLIED_PAYMENT_SCHEDULE_ID LEFT OUTER JOIN CE_BANK_ACCT_USES_ALL ON AR_CASH_RECEIPTS_ALL.PAYMENT_SCHEDULE _ID = AR_RECEIVABLE_APPLICATIONS_ALL.CONFIRMED_FLAG. 'OTHER A CC') AND AR_RECEIVABLE_APPLICATIONS_ALL.CASH_RECEIPT_ID INNER JOIN AR_PAYMENT_SCHEDULES_ALL ON AR_PAYMENT_SCHEDULES_ALL.SOURCE_ID INNER JOIN AR_CASH_RECEIPTS_ALL ON AR_CASH_RECEIPTS_ALL.AR_RECEIVABLE_APPLICATIONS_ALL INNER JOIN AR_DISTRIBUTIONS_ALL ON AR_RECEIVABLE_APPLICATIONS_ALL.CASH_RECEIPT_ID = AR_REC EIVABLE_APPLICATIONS_ALL.APPLICATION_TYPE = 'CASH' AND NVL(AR_RECEIVABLE_APPLICATIONS_ALL. 'UNID'.CUSTOMER_TRX_ID = AR_ RECEIVABLE_APPLICATIONS_ALL.