Fixed manufacturing module voiding procedures.
[fa-stable.git] / manufacturing / work_order_costs.php
index ef40fc9373080b9bd08a11524f4810af744f4374..b52590f4a072094d6d3636a39e47acfd0ed29e22 100644 (file)
@@ -118,7 +118,7 @@ display_wo_details($_POST['selected_id']);
 //-------------------------------------------------------------------------------------
 
 if (!isset($_POST['ref']))
-       $_POST['ref'] = $Refs->get_next(ST_JOURNAL, null, get_post('date_'));
+       $_POST['ref'] = $Refs->get_next(ST_JOURNAL, null, Today());
 
 start_form();