To change the warehouse while creating the invoice, please follow the steps below:
Step 1: Go the “Sales” and click on " + Create Invoice".
Step 2: Add “Customer” and “Select/ Change Warehouse”.