Release 1.0.1 established on SourceForge, fixing the bugs and including a Date Picker...
[fa-stable.git] / manufacturing / work_order_entry.php
index 8b9c10f79e816fda97bac8a85e6de2fa0cac3c8f..b26ed9cce0d653bc8ddf04e0976a301a1c4a3105 100644 (file)
@@ -5,8 +5,6 @@ $path_to_root="..";
 
 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");
@@ -14,6 +12,12 @@ 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."));