Release 1.0.1 established on SourceForge, fixing the bugs and including a Date Picker...
[fa-stable.git] / manufacturing / work_order_add_finished.php
index 2771994a4816859c16bf833f6985782490a99395..ecc1d0a64db3198bd082aa1b5c6a57fa35e396c6 100644 (file)
@@ -4,8 +4,6 @@ $page_security = 10;
 $path_to_root="..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Produce or Unassemble Finished Items From Work Order"));
-
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/db/inventory_db.inc");
 include_once($path_to_root . "/includes/manufacturing.inc");
@@ -13,6 +11,11 @@ include_once($path_to_root . "/includes/manufacturing.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(_("Produce or Unassemble Finished Items From Work Order"), false, false, "", $js);
+
 if (isset($_GET['trans_no']) && $_GET['trans_no'] != "")
 {
        $_POST['selected_id'] = $_GET['trans_no'];