Added sorting for number and name in work order inquiry.
authorJoe <unknown>
Sat, 13 Sep 2014 22:42:03 +0000 (00:42 +0200)
committerJoe <unknown>
Sat, 13 Sep 2014 22:42:03 +0000 (00:42 +0200)
manufacturing/search_work_orders.php

index 05892e3ec90cb9cdb78db41f2cf37280422b4c1c..7610a1cb9f867edf565748d17e4271cea9dd02b3 100644 (file)
@@ -156,11 +156,11 @@ function dec_amount($row, $amount)
 $sql = get_sql_for_work_orders($outstanding_only, $all_items);
 
 $cols = array(
-       _("#") => array('fun'=>'view_link'), 
+       _("#") => array('fun'=>'view_link', 'ord'=>''), 
        _("Reference"), // viewlink 2 ?
        _("Type") => array('fun'=>'wo_type_name'),
        _("Location"), 
-       _("Item") => array('fun'=>'view_stock'),
+       _("Item") => array('fun'=>'view_stock', 'ord'=>''),
        _("Required") => array('fun'=>'dec_amount', 'align'=>'right'),
        _("Manufactured") => array('fun'=>'dec_amount', 'align'=>'right'),
        _("Date") => array('name'=>'date_', 'type'=>'date', 'ord'=>'desc'),