Changed context help organization to enable use of central, multilanguage wiki.
[fa-stable.git] / manufacturing / view / wo_issue_view.php
index 4bb3b936364dff1fcff1a9042417d658c9262337..d8cda6eb878d059dca1dfda5ccecc0e6fa252e29 100644 (file)
@@ -1,22 +1,22 @@
 <?php
 /**********************************************************************
     Copyright (C) FrontAccounting, LLC.
-       Released under the terms of the GNU Affero General Public License,
-       AGPL, as published by the Free Software Foundation, either version 
-       of the License, or (at your option) any later version.
+       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/agpl-3.0.html>.
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-$page_security = 10;
-$path_to_root="../..";
+$page_security = 'SA_MANUFTRANSVIEW';
+$path_to_root = "../..";
 include_once($path_to_root . "/includes/session.inc");
 
 $js = "";
 if ($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");
@@ -49,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"]);
@@ -111,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);