How to select batch for a product with batches while creating a purchase invoice on web?

Please go to Purchases >> Create Purchase

Proceed with adding the desired product

Select the batch

Also you can add the new batches from the right up side corner and save the details.

Here, mention the new batch details.

Your all details will display here and you can click on Done option.