To change customer for an existing invoice, please follow below mention steps:
Step 1: Click on Invoices under Sales, and click on Edit invoice for which you want to change the customer.
Step 2: Click on the cross icon to change the customer and proceed with saving the invoice.