Good Morning

I have posted a payment on the wrong customer account in a previous month. I posted it in July because that was when it appeared on my bank statement.
How to I reverse it on the wrong customer account, and post again on correct customer account, but it must not effect my cashbook.