$path_to_root="../..";
include_once($path_to_root . "/includes/session.inc");
-page(_("View Work Order Issue"), true);
+$js = "";
+if ($use_popup_windows)
+ $js .= get_js_open_window(900, 500);
+page(_("View Work Order Issue"), true, false, "", $js);
include_once($path_to_root . "/includes/date_functions.inc");
include_once($path_to_root . "/includes/manufacturing.inc");
//-------------------------------------------------------------------------------------------------
-if ($_GET['trans_no'] != "")
+if ($_GET['trans_no'] != "")
{
$wo_issue_no = $_GET['trans_no'];
}
start_table($table_style);
$th = array(_("Issue #"), _("Reference"), _("For Work Order #"),
_("Item"), _("From Location"), _("To Work Centre"), _("Date of Issue"));
- table_header($th);
+ table_header($th);
start_row();
label_cell($myrow["issue_no"]);
if (db_num_rows($result) == 0)
{
- echo "<br>" . _("There are no items for this issue.");
- }
- else
+ display_note(_("There are no items for this issue."));
+ }
+ else
{
start_table($table_style);
$th = array(_("Component"), _("Quantity"), _("Units"));
$total_cost = 0;
- while ($myrow = db_fetch($result))
+ while ($myrow = db_fetch($result))
{
alt_table_row_color($k);