In the case of applying a deposit twice, you can refund the incorrect deposit by going to the Payment Register by Client under Accounting and selecting the client’s name; then click Search.
Scroll down to Receive/Refund Deposit and put a (-) negative entry with the amount that you want to refund.
Click the Save button. This will reverse the wrong deposit entry.