Quantcast
Channel: pacesettergraam
Viewing all articles
Browse latest Browse all 314

AR Receipt Class, Receipt Method and related Bank Account details Query

$
0
0

I had a requirement to build a report for AR Receipt Class, Receipt Method and related Bank Account details initially stuggled a bit however managed to get the Query.

SELECT distinct
ARC.NAME RECEIPT_CLASSES,
ARM.NAME RECEIPT_METHOD
–,arm.RECEIPT_METHOD_ID
–,arm.receipt_class_id
,CEA.BANK_ACCOUNT_NAME
–,CEA.BANK_ACCOUNT_NUM
–,cea.bank_account_id,
,CEA.IBAN_NUMBER,
CEA.EFT_USER_NUM,
CBBV.BANK_NAME
,CBBV.BANK_BRANCH_NAME
FROM
AR_RECEIPT_CLASSES ARC
,AR_RECEIPT_METHODS ARM
,AR_RECEIPT_METHOD_ACCOUNTS_ALL ARMAA
,CE_BANK_ACCT_USES_ALL cbaua
,CE_BANK_ACCOUNTS CEA
,CE_BANK_BRANCHES_V CBBV
WHERE
1 = 1
AND ARC.RECEIPT_CLASS_ID = ARM.RECEIPT_CLASS_ID
AND ARM.RECEIPT_METHOD_ID = ARMAA.RECEIPT_METHOD_ID
and arm.end_date is Null
and arm.name not in(‘AP/AR Netting’,’AP/AR Netting(1)’)
AND ARMAA.REMIT_BANK_ACCT_USE_ID = cbaua.BANK_ACCT_USE_ID
and cbaua.BANK_ACCOUNT_ID = CEA.bank_account_id
AND CEA.BANK_BRANCH_ID = CBBV.BRANCH_PARTY_ID;


Viewing all articles
Browse latest Browse all 314

Trending Articles