Cancel an invoice 50% paid

Hello,
how do I cancel an invoice which has been 50% paid and return payment to the customer?
I tried to issue a credit note. It can deduct the whole amount but expects me to pay back in full (not only the 50% payed by the customer).

Thanks.

I have the same question as yours. I got 50% payment from one of my client for starting a project. Somehow the project got cancelled by the client. I got payment via PayPal. Now I refunded the payment via PayPal. Now I can’t see any option at Dolibarr 8.0.2 to refund the payment.

Can anyone help in this regards?

You can create a credit note.

Go to third parties, go to the customer and click create invoice or credit note.