Reinserted the link to GL in Work Order Inquiry.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 18 May 2009 16:51:19 +0000 (16:51 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 18 May 2009 16:51:19 +0000 (16:51 +0000)
CHANGELOG.txt
manufacturing/search_work_orders.php

index d5a63682eb608cae707dfe73e7b8d37bb2e7991c..1d100acf8909806ecd7b7ae901bbdb40b9cc6375 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+18-May-2009 Joe Hunt
+! Reinserted the link to GL in Work Order Inquiry.
+$ /manufacturing/search_work_orders.php
+
 17-May-2009 Joe Hunt
 ! Changed service items to use cogs account instead of inventory account.
 $ /inventory/manage/items.php
index 15b466ce12131f7929430dc130e355e3576c2a30..bc5c53f475aadfa5a437dd7fdd841ec41f081245 100644 (file)
@@ -136,6 +136,13 @@ function costs_link($row)
                        .payment_person_types::WorkOrder(). "&PayPerson=" .$row["id"]);
 }
 
+function view_gl_link($row)
+{
+       if ($row['closed'] == 0)
+               return '';
+       return get_gl_view_str(systypes::work_order(), $row['id']);
+}
+
 function dec_amount($row, $amount)
 {
        return number_format2($amount, $row['decimals']);
@@ -204,7 +211,8 @@ $cols = array(
        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'=> 'costs_link'),
+       array('insert'=>true, 'fun'=> 'view_gl_link')
 );
 
 $table =& new_db_pager('orders_tbl', $sql, $cols);