You need to invoice the $500. That is done by creating an invoice batch, and selecting as the Document type "Retainage invoice". When you post this invoice, the $500 is moved from Retainage Receivable to Accounts Receivable, and then cash can be applied against it.