I have products, materials. Each product needs a couple of (actually more than it) materials( each material amount differs based on product). I have this saved in two tables in relation( which products requires how much of each material). Though in the case I saved, all products are in 1 unit. However, Manufacturing team might ask more than one unit. So, quantity of each element should get multiplied, and saved in corresponding request table ( Manufacturers makes requests of products). Manufacturer should choose product, and unit. So, corresponding materials with right quantity should be added to the table at once.
Can anyone help me how to do it, thank you