How best to handle an overpayment from a regular customer?

SOLVED

Another issue from an accounting newbie (myself): I sent the customer an incorrect invoice, so I replaced it with a correct one that was for less. However, now he has gone and paid the incorrect invoice. So he has overpaid. And I deposited the cheque without realizing the error. What is the best thing to do here? Issue him a refund cheque? Or record the overpayment amount in some sort of credit account so that it can be applied on the next invoice? Or something else?

I tried entering the amount that he paid in the Receipts module, but it wouldn't allow me to record the overpayment. I was hoping it would have said, "Hey this is an overpayment. Do you want to credit this guy's account for the next time?" or something like that. But, alas, accounting programs don't work the way my simple mind would expect. 

Any suggestions for me as to the best way of handling this? Thanks