Fixed Assets, a couple of small bugs more.
[fa-stable.git] / manufacturing / work_order_costs.php
index 32184da9151fa3115270d2006322590a5db13f6e..a76c5f5e0d90163e5affd6def3a226f039d34fdc 100644 (file)
 $page_security = 'SA_WORKORDERCOST';
 $path_to_root = "..";
 include_once($path_to_root . "/includes/session.inc");
+include_once($path_to_root . "/includes/inventory.inc");
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/gl/includes/db/gl_db_bank_trans.inc");
-include_once($path_to_root . "/includes/db/inventory_db.inc");
-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");
@@ -118,7 +117,7 @@ display_wo_details($_POST['selected_id']);
 //-------------------------------------------------------------------------------------
 
 if (!isset($_POST['ref']))
-       $_POST['ref'] = $Refs->get_next(ST_JOURNAL);
+       $_POST['ref'] = $Refs->get_next(ST_JOURNAL, null, get_post('date_'));
 
 start_form();