X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fview%2Fwo_issue_view.php;h=799a2b47ed5170a22b7460860beb0ea9686e3e73;hb=9a1b3abd5371ad7f6315db1d56f8356587444314;hp=b82eb3b5419c038c1d694376b39b5c6bd6a38725;hpb=f3123ed641f15e1a4abcacda73569a199d211bfe;p=fa-stable.git diff --git a/manufacturing/view/wo_issue_view.php b/manufacturing/view/wo_issue_view.php index b82eb3b5..799a2b47 100644 --- a/manufacturing/view/wo_issue_view.php +++ b/manufacturing/view/wo_issue_view.php @@ -1,16 +1,24 @@ . +***********************************************************************/ +$page_security = 'SA_MANUFTRANSVIEW'; +$path_to_root = "../.."; include_once($path_to_root . "/includes/session.inc"); $js = ""; -if ($use_popup_windows) +if ($SysPrefs->use_popup_windows) $js .= get_js_open_window(900, 500); -page(_("View Work Order Issue"), true, false, "", $js); +page(_($help_context = "View Work Order Issue"), true, false, "", $js); include_once($path_to_root . "/includes/date_functions.inc"); -include_once($path_to_root . "/includes/manufacturing.inc"); include_once($path_to_root . "/includes/data_checks.inc"); include_once($path_to_root . "/manufacturing/includes/manufacturing_db.inc"); @@ -27,12 +35,10 @@ if ($_GET['trans_no'] != "") function display_wo_issue($issue_no) { - global $table_style; - $myrow = get_work_order_issue($issue_no); br(1); - start_table($table_style); + start_table(TABLESTYLE); $th = array(_("Issue #"), _("Reference"), _("For Work Order #"), _("Item"), _("From Location"), _("To Work Centre"), _("Date of Issue")); table_header($th); @@ -40,7 +46,7 @@ function display_wo_issue($issue_no) start_row(); label_cell($myrow["issue_no"]); label_cell($myrow["reference"]); - label_cell(get_trans_view_str(systypes::work_order(),$myrow["workorder_id"])); + label_cell(get_trans_view_str(ST_WORKORDER,$myrow["workorder_id"])); label_cell($myrow["stock_id"] . " - " . $myrow["description"]); label_cell($myrow["location_name"]); label_cell($myrow["WorkCentreName"]); @@ -58,8 +64,6 @@ function display_wo_issue($issue_no) function display_wo_issue_details($issue_no) { - global $table_style; - $result = get_work_order_issue_details($issue_no); if (db_num_rows($result) == 0) @@ -68,7 +72,7 @@ function display_wo_issue_details($issue_no) } else { - start_table($table_style); + start_table(TABLESTYLE); $th = array(_("Component"), _("Quantity"), _("Units")); table_header($th); @@ -102,7 +106,7 @@ function display_wo_issue_details($issue_no) //------------------------------------------------------------------------------------------------- -display_heading(systypes::name(28) . " # " . $wo_issue_no); +display_heading($systypes_array[ST_MANUISSUE] . " # " . $wo_issue_no); display_wo_issue($wo_issue_no); @@ -114,7 +118,5 @@ display_wo_issue_details($wo_issue_no); echo "
"; -end_page(true); - -?> +end_page(true, false, false, ST_MANUISSUE, $wo_issue_no);