Production Order Seperation of costs

I have 2 types of businesses that require production orders. I need to be able to have divisions between production orders, in order to show me the production costs incurred in business A (and its sales) vs the production costs incurred in business B (and its sales).

Note, the following don’t work because:

Inventory - cost calculates the cost of a collective of all production orders.

Projects only works for sales and purchases.