include_once($path_to_root . "/includes/session.inc");
-page(_("Work Order Entry"));
-
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_date_picker)
+ $js .= get_js_date_picker();
+page(_("Work Order Entry"), false, false, "", $js);
+
+
check_db_has_manufacturable_items(_("There are no manufacturable items defined in the system."));
check_db_has_locations(("There are no inventory locations defined in the system."));