select ra.trx_number from ar_cash_receipts_all cr, ar_receivable_applications_all ar,ra_customer_trx_all ra where cr.cash_receipt_id = ar.CASH_RECEIPT_ID AND cr.receipt_number = '50011220150703917' and ar.amount_applied = -3817.5 and ar.status = 'APP' and ar.applied_customer_trx_id = ra.customer_trx_id