[0004216] Print Work Orders: database error fixed when voided WO is in selected range.
[fa-stable.git] / purchasing / inquiry / po_search.php
index c06fcc819e85e460e10570c8d932c0995c573ded..9e77d7104d038d8379f93ec974a29f5febaa30cb 100644 (file)
@@ -91,7 +91,7 @@ function edit_link($row)
 
 function prt_link($row)
 {
-       return print_document_link($row['order_no'], _("Print"), true, 18, ICON_PRINT);
+       return print_document_link($row['order_no'], _("Print"), true, ST_PURCHORDER, ICON_PRINT);
 }
 
 function receive_link($row) 
@@ -127,7 +127,7 @@ $cols = array(
                array('insert'=>true, 'fun'=>'receive_link')
 );
 
-if ($_POST['StockLocation'] != ALL_TEXT) {
+if (get_post('StockLocation') != ALL_TEXT) {
        $cols[_("Location")] = 'skip';
 }