Cleanup in PO Search and PO Search Completed.
authorJoe <unknown>
Sat, 17 Jan 2015 23:23:02 +0000 (00:23 +0100)
committerJoe <unknown>
Sat, 17 Jan 2015 23:23:02 +0000 (00:23 +0100)
purchasing/inquiry/po_search.php
purchasing/inquiry/po_search_completed.php

index 71228317d99a9eee0aecec8164ed32169e318931..c06fcc819e85e460e10570c8d932c0995c573ded 100644 (file)
@@ -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';
 }
 
index ca83d87465b21f5bc85740092e132b18a781d1fc..a7495eab100e172acbdf4a9c3f0d47612a6b224b 100644 (file)
@@ -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);