The cost price is not really relevant as purchase price because it may include extra cost like landed cost. Closes #12494
If assign_try fails to assign all the moves, we check if all the moves of each shipment and production are assigned and then assign them. Also we remove the boolean return which makes no more sense. Closes #7006