if (!has_bom($myrow['stock_id']))
{
display_error(_("This Work Order cannot be released. The selected item to manufacture does not have a bom."));
if (!has_bom($myrow['stock_id']))
{
display_error(_("This Work Order cannot be released. The selected item to manufacture does not have a bom."));