From: Joe Hunt Date: Mon, 18 May 2009 16:51:19 +0000 (+0000) Subject: Reinserted the link to GL in Work Order Inquiry. X-Git-Tag: 2.3-final~1259 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=72a8ab76ef3ecf3efc06bd75d27aa97475126444;p=fa-stable.git Reinserted the link to GL in Work Order Inquiry. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d5a63682..1d100acf 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 diff --git a/manufacturing/search_work_orders.php b/manufacturing/search_work_orders.php index 15b466ce..bc5c53f4 100644 --- a/manufacturing/search_work_orders.php +++ b/manufacturing/search_work_orders.php @@ -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);