Something such as the following may work.
You could treat the overpayment as just that and pay off the invoice and treat the rest as a prepayment towards future work. To do this, tag the money in transaction as a payment from a client and use the "pay down multiple invoices" option.
The rest will then sit on the client's account and can be used against any other outstanding invoices.
I hope that helps!