best practice for refunding deposits

best practice for refunding deposits

What is the best way to handle the following scenario:

1. Customer pays a deposit to secure a booking for an appointment. 
2. Customer cancels their appointment and their deposit is refunded.

We need to record the initial payment and the refund, however, we obviously do not wish to record the sale as it never eventuated and it also is not a 'bad debt' that should be written off.

At the moment I am changing the the item on the invoice to a $0 amount and showing the refund as a negative 'payment'.

This closes the invoice and still records the payment and refund.

However, it is not possible to void the invoice due to the payment history.

Any suggestions?

Thanks,
Anton