How to: Writing off bad debt from either on account or invoice

How do you write off bad debt from an account?

If someone short pays an invoice and the rest needs to be written off, how do you do that?

thanks,

Kevin