Products have specific ingredients

For instance a blouse is made by 3 materials fabric,a zip and a thread:


At the analytic description, the blouse is the final product so we write: 


Which means that we have used 2 meters fabric,1 zip and 100 meters Threads.

On the left field there is the code of each product and on the right the quantity