If a client/ customer returned an item and took another item in exchange for that. How to record it?

Scenario 1: You can directly convert the sales invoice into Sales return/Credit note.

Please follow the article linked below to concert sales invoice to sales return.

Scenario 2: You can create a sales return/credit note document.

After creating a sales return/credit note, you can proceed with creating a new sales invoice for the new item.