The variable used in order to sum the total cost was the same that the one used in order to save sub bom cost. The total cost was override at each loop and the total cost was equals to twice the last bom line cost.
The variable used in order to sum the total cost was the same that the one used in order to save sub bom cost. The total cost was override at each loop and the total cost was equals to twice the last bom line cost.