How do I post a credit note into the clients sales ledger account?

We have a general guide on credit notes here.

Managing credit notes

You can create a generic credit note in the new invoice screen by entering a negative figure. You can also credit note any pre-existing invoices from the invoice preview screen in the more options menu.