To create a group for a main product which has batches on web, please refer to the below mentioned steps:
Step 1: Navigate to Product and services >> Groups >> Click on Create Group
Step 2: Select the Main Product >> Click on the Batch Product that you want to add as main product. Refer to the below shared article for adding the batch product.
Step 3: Click on Select Sub Products
Step 4: Select the Sub products >> Click on Edit Products
Step 5: Enter the desired quantity that will be used in making the main product >> Click on Submit
Step 6: Now the group is created and you can go to the inventory section and stock in the product by selecting the desired batch
To stock in a batch product, refer to the below shared article