6: select BAU.CUSTOMER_ID,
7: BAU.CUSTOMER_SITE_USE_ID,
8: BAC.CURRENCY_CODE
9: from AP_BANK_ACCOUNT_USES_ALL BAU,
10: AP_BANK_ACCOUNTS_ALL BAC
11: where ((BAU.customer_id = nvl(custid, BAU.customer_id)
12: and BAU.customer_site_use_id =
13: nvl(siteuseid, BAU.customer_site_use_id))
14: or (BAU.customer_id = nvl(custid, BAU.customer_id)