From: Joe Date: Sat, 17 Jan 2015 23:23:02 +0000 (+0100) Subject: Cleanup in PO Search and PO Search Completed. X-Git-Tag: v2.4.2~19^2~263 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=5a8be0665e1577ec1811b119f9120b8e21326e50 Cleanup in PO Search and PO Search Completed. --- diff --git a/purchasing/inquiry/po_search.php b/purchasing/inquiry/po_search.php index 71228317..c06fcc81 100644 --- a/purchasing/inquiry/po_search.php +++ b/purchasing/inquiry/po_search.php @@ -86,7 +86,7 @@ function trans_view($trans) function edit_link($row) { - return trans_editor_link(ST_PURCHORDER, $trans["order_no"]); + return trans_editor_link(ST_PURCHORDER, $row["order_no"]); } function prt_link($row) @@ -127,7 +127,7 @@ $cols = array( array('insert'=>true, 'fun'=>'receive_link') ); -if (get_post('StockLocation') != $all_items) { +if ($_POST['StockLocation'] != ALL_TEXT) { $cols[_("Location")] = 'skip'; } diff --git a/purchasing/inquiry/po_search_completed.php b/purchasing/inquiry/po_search_completed.php index ca83d874..a7495eab 100644 --- a/purchasing/inquiry/po_search_completed.php +++ b/purchasing/inquiry/po_search_completed.php @@ -104,8 +104,8 @@ function edit_link($row) { global $page_nested; - return $page_nested ? '' - trans_editor_link(ST_PURCHORDER, $trans["order_no"]); + return $page_nested ? '' : + trans_editor_link(ST_PURCHORDER, $row["order_no"]); } function prt_link($row) @@ -131,9 +131,10 @@ $cols = array( array('insert'=>true, 'fun'=>'prt_link'), ); -if (get_post('StockLocation') != $all_items) { +if (get_post('StockLocation') != ALL_TEXT) { $cols[_("Location")] = 'skip'; } + //--------------------------------------------------------------------------------------------------- $table =& new_db_pager('orders_tbl', $sql, $cols);