Fiscal year delete leads to undefined variable $total. Fixed.
[fa-stable.git] / manufacturing / work_order_add_finished.php
index 717faf0902471ba5b638de30721fc9a7dc78bd02..43072682cbab2e1e777fa0392c14fbf7e0f3f4b0 100644 (file)
@@ -27,8 +27,6 @@ if (user_use_date_picker())
        $js .= get_js_date_picker();
 page(_($help_context = "Produce or Unassemble Finished Items From Work Order"), false, false, "", $js);
 
-check_wip_account();
-
 if (isset($_GET['trans_no']) && $_GET['trans_no'] != "")
 {
        $_POST['selected_id'] = $_GET['trans_no'];
@@ -184,8 +182,8 @@ if (!isset($_POST['quantity']) || $_POST['quantity'] == '')
 start_table(TABLESTYLE2);
 br();
 
-ref_row(_("Reference:"), 'ref', '', $Refs->get_next(ST_MANURECEIVE, null, get_post('date_')), false, ST_MANURECEIVE);
 date_row(_("Date:"), 'date_');
+ref_row(_("Reference:"), 'ref', '', $Refs->get_next(ST_MANURECEIVE, null, get_post('date_')), false, ST_MANURECEIVE);
 
 if (!isset($_POST['ProductionType']))
        $_POST['ProductionType'] = 1;