The final payment or check on the invoice paid the amount as non-retainage instead of retainage.
You can verify this in Accounts Payable Inquiry, Other, AP Transactions. Drill down on the vendor and invoice. Add a column for the Dist Seq. Notice that the last check or payment transaction on the distribution is missing the Retainage amount.
You may also see the following:
Accounts Payable Inquiry, Invoice Inquiries, Invoice Register add columns for Retainage, Retainage Held, and Retainage Paid on the invoice and distribution levels. The Retainage and Retainage Held match, the Original Amount and Amount Paid match, but the Retainage Paid is less than Retainage and Retainage Held.
This can happen when selecting multiple invoices for payment (i.e. selecting all the invoices for a vendor at the Vendor level or all the invoices for a job at the Job level) and one of the first invoices in the group has no retainage. Or an invoice with multiple distributions is selected and there's a distribution with no retainage before the distributions with retainage.