Fixed get_post() support for numeric fields.
[fa-stable.git] / manufacturing / search_work_orders.php
index 98b645b340e351d9b9810aa75d50732e08b7459e..1c407b6487eb81087249a0dcd10bdcd2280db564 100644 (file)
@@ -135,12 +135,6 @@ function produce_link($row)
 
 function costs_link($row)
 {
-/*
-       return $row["closed"] || !$row["released"] ? '' :
-               pager_link(_('Costs'),
-                       "/gl/gl_bank.php?NewPayment=1&PayType=" 
-                       .PT_WORKORDER. "&PayPerson=" .$row["id"]);
-*/                     
        return $row["closed"] || !$row["released"] ? '' :
                pager_link(_('Costs'),
                        "/manufacturing/work_order_costs.php?trans_no=" .$row["id"]);
@@ -148,8 +142,6 @@ function costs_link($row)
 
 function view_gl_link($row)
 {
-       //if ($row['closed'] == 0)
-       //      return '';
        return get_gl_view_str(ST_WORKORDER, $row['id']);
 }
 
@@ -173,8 +165,8 @@ $cols = array(
        _("Required By") => array('type'=>'date', 'ord'=>''),
        array('insert'=>true, 'fun'=> 'edit_link'),
        array('insert'=>true, 'fun'=> 'release_link'),
-       array('insert'=>true, 'fun'=> 'produce_link'),
        array('insert'=>true, 'fun'=> 'costs_link'),
+       array('insert'=>true, 'fun'=> 'produce_link'),
        array('insert'=>true, 'fun'=> 'view_gl_link')
 );