A bill of materials per item, an explosion that walks it down through its components, and work orders that issue materials, hold work in progress and complete into costed finished goods.
Light manufacturing, in the accounting engine. Not an MRP system — the parts a business that assembles or produces actually needs in its books.
The finished item is worth what went into it, because what went into it was recorded as it went in.