Create a Bill of Material of type subcontracting. Enter a subcontractor.
Select Manufacture as the route for the product.
Select Buy and Resupply subcontractor on order as the route for components.
Create a purchase order for the product confirm it.
In the inventory an OUT transfer will be created for the components to the subcontractor and validate it
Validate the IN transfer for the main product.