Retainage amounts for AR invoices

We are in the construction industry and we use project management and milestone billing. For each of our AR invoices we need to retain 5% which is not paid until the project closes out. What is best practice for doing this in Epicor? We want the invoiced amount to the regular AR account and the retainage amount to go to a retainage AR account.