Wrong Batch Selected by Mistake

While creating an invoice, we accidentally selected the wrong purchase batch. Is there a way to change it before saving?

Yes, reopen the Warehouse selection panel and choose the correct batch.

The selected batch can be changed before finalizing the invoice.

That worked. Thanks for your Help