Resolving error when optimizing bill of materials

When optimizing bill of materials, an error occurred when converting a semi-finished product to a material rule. This resulted in the optimization not being executed correctly. This issue has now been resolved.