Tax Inquiry: fixed refrences to non-existing database fields.
[fa-stable.git] / manufacturing / view / wo_issue_view.php
index d8cda6eb878d059dca1dfda5ccecc0e6fa252e29..799a2b47ed5170a22b7460860beb0ea9686e3e73 100644 (file)
@@ -14,12 +14,11 @@ $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(_($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");
@@ -36,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);
@@ -67,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)
@@ -77,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);
@@ -123,7 +118,5 @@ display_wo_issue_details($wo_issue_no);
 
 echo "<br>";
 
-end_page(true);
-
-?>
+end_page(true, false, false, ST_MANUISSUE, $wo_issue_no);