from ar_receipt_classes arc,
ar_receipt_methods arm,
ar_receipt_method_accounts_all ara,
hz_parties hp,
hz_parties hpc,
ce_bank_accounts cba,
ce_bank_acct_uses_all cbau,
hr_all_organization_units haou,
gl_code_combinations gccc,
gl_code_combinations gccuapp,
gl_code_combinations gccunid,
gl_code_combinations gccOn
where arc.receipt_class_id = arm.receipt_class_id
and arc.receipt_class_id > 1
and arm.receipt_method_id = ara.receipt_method_id
and hp.party_id = cba.bank_id
and cba.bank_branch_id = hpc.party_id
and cba.bank_account_id = cbau.bank_account_id
and ara.remit_bank_acct_use_id = cbau.bank_acct_use_id
and haou.organization_id = ara.org_id
and gccc.code_combination_id = ara.cash_ccid
and gccuapp.code_combination_id=ara.unapplied_ccid
and gccunid.code_combination_id=ara.unidentified_ccid
and gccOn.code_combination_id=ara.on_account_ccid
order by cba.bank_branch_id,haou.organization_id