Multiple process manufacturing

Hello i am new to erpnext so please help
Lets say i want to manufacture a product 60pcs of x
To manufacture it i purchase raw material x1,x2,x3,x4
Then this raw material goes through the process of cutting which costs me 2$ per pcs and i provide these processed goods a batch No 0011
Then the processed goods with batch no 0011 are subcontracted to a supplier for stitching and it costs 20$ per pc
And from there i receive a finish goods which have a batch no. 0011
Can anyone explain me how to do it