Update from usntable branch.
[fa-stable.git] / manufacturing / view / wo_production_view.php
index 1ab3e442425a39e4c66a0e6b180b4b008897d061..3017ac31fefe97d1f8b0900ae3293c1b57695471 100644 (file)
@@ -9,15 +9,15 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     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 Production"), true, false, "", $js);
+page(_($help_context = "View Work Order Production"), true, false, "", $js);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/manufacturing.inc");
@@ -50,22 +50,22 @@ function display_wo_production($prod_id)
        start_row();
        label_cell($myrow["id"]);
        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["StockDescription"]);
        qty_cell($myrow["quantity"], false, get_qty_dec($myrow["stock_id"]));
        label_cell(sql2date($myrow["date_"]));
        end_row();
 
-    comments_display_row(29, $prod_id);
+    comments_display_row(ST_MANURECEIVE, $prod_id);
 
        end_table(1);
 
-       is_voided_display(29, $prod_id, _("This production has been voided."));
+       is_voided_display(ST_MANURECEIVE, $prod_id, _("This production has been voided."));
 }
 
 //-------------------------------------------------------------------------------------------------
 
-display_heading(systypes::name(29) . " # " . $wo_production);
+display_heading($systypes_array[ST_MANURECEIVE] . " # " . $wo_production);
 
 display_wo_production($wo_production);