Eliminated non-static method calls and other bulk fixes to fix php5 warnings
[fa-stable.git] / manufacturing / view / wo_issue_view.php
index e3ba38bcb7358d44b97b45d708aa71f417e3de9f..9f0a8d7e0ac5c7c7385f3d6adb4cdfd7bde3de30 100644 (file)
@@ -1,7 +1,16 @@
 <?php
-
-$page_security = 10;
-$path_to_root="../..";
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
+$page_security = 'SA_MANUFTRANSVIEW';
+$path_to_root = "../..";
 include_once($path_to_root . "/includes/session.inc");
 
 $js = "";
@@ -31,6 +40,7 @@ function display_wo_issue($issue_no)
 
     $myrow = get_work_order_issue($issue_no);
 
+       br(1);
     start_table($table_style);
     $th = array(_("Issue #"), _("Reference"), _("For Work Order #"),
        _("Item"), _("From Location"), _("To Work Centre"), _("Date of Issue"));
@@ -39,7 +49,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"]);
@@ -101,7 +111,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);