925: and rel.bill_to_flag = 'Y'
926: union
927: select rel.related_cust_account_id
928: from ar_paying_relationships_v rel,
929: hz_cust_accounts acc
930: where rel.party_id = acc.party_id
931: and acc.cust_account_id = l_customer_id
932: )
933: or