Backup and Restore: Added support for views (@oakstreet1)
[fa-stable.git] / manufacturing / view / work_order_view.php
index 61dfbf3c05192da5bab37364b983f94e007af100..4d999ab9c705d9925bcba071b1a0cb24eb2c9bc8 100644 (file)
@@ -15,13 +15,12 @@ $path_to_root = "../..";
 include_once($path_to_root . "/includes/session.inc");
 
 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");
 include_once($path_to_root . "/manufacturing/includes/manufacturing_ui.inc");
 $js = "";
-if ($use_popup_windows)
+if ($SysPrefs->use_popup_windows)
        $js .= get_js_open_window(800, 500);
 page(_($help_context = "View Work Order"), true, false, "", $js);
 
@@ -81,6 +80,5 @@ echo "<br></center>";
 
 is_voided_display(ST_WORKORDER, $woid, _("This work order has been voided."));
 
-end_page(true);
+end_page(true, false, false, ST_WORKORDER, $woid);
 
-?>