Writing off invoices

Self-hosted
If a customer pays part of the invoice, and refuses to pay further, can we write off the balance amount as ‘Bad Debts’? How will that entry be made?

Sorry, it isn’t supported in the current version.

OK.
What if we create a credit note for the pending amount, and ‘pay off’ the credit note, will that work? And will it show correct balances?