Incorrect cost price with multiple sales order lines linked to one production order subassembly

The cost price fields on the sales order line were calculated incorrectly when multiple sales order lines within the same sales order were linked to one production order subassembly. In this case, the cost price distribution was not applied across the different sales order lines.