+ $modify_page = $path_to_root . "/manufacturing/work_order_entry.php?" . SID . "trans_no=" . $myrow["id"];
+ $l1 = "<a href=$modify_page>"._('Edit').'</a>';
+ if ($myrow["released"] == 0)
+ {
+ $release_page = $path_to_root . "/manufacturing/work_order_release.php?" . SID . "trans_no=" . $myrow["id"];
+ $l2 = "<a href=$release_page>"._('Release').'</a>';
+ }
+ else
+ {
+ $issue = $path_to_root . "/manufacturing/work_order_issue.php?" . SID . "trans_no=" .$myrow["id"];
+ $add_finished = $path_to_root . "/manufacturing/work_order_add_finished.php?" . SID . "trans_no=" .$myrow["id"];
+ $costs = $path_to_root . "/gl/gl_bank.php?NewPayment=1&PayType=" . payment_person_types::WorkOrder(). "&PayPerson=" .$myrow["id"];
+ $l2 = "<a href=$issue>" . _("Issue") . "</a>";
+ $l3 = "<a href=$add_finished>" . _("Produce") . "</a>";
+ $l4 = "<a href=$costs>" . _("Costs") . "</a>";
+ }