X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Finquiry%2Fpo_search_completed.php;h=a7495eab100e172acbdf4a9c3f0d47612a6b224b;hb=7561718ee5113232ce917f63085d272884b0929c;hp=7a89e4eb9986aa29b555f4285409c15d442915fe;hpb=c8145b03ed9754bd9552ccdac38b41b73550a69f;p=fa-stable.git diff --git a/purchasing/inquiry/po_search_completed.php b/purchasing/inquiry/po_search_completed.php index 7a89e4eb..a7495eab 100644 --- a/purchasing/inquiry/po_search_completed.php +++ b/purchasing/inquiry/po_search_completed.php @@ -18,7 +18,7 @@ include_once($path_to_root . "/purchasing/includes/purchasing_ui.inc"); include_once($path_to_root . "/reporting/includes/reporting.inc"); $js = ""; -if ($use_popup_windows) +if ($SysPrefs->use_popup_windows) $js .= get_js_open_window(900, 500); if (user_use_date_picker()) $js .= get_js_date_picker(); @@ -60,7 +60,7 @@ start_table(TABLESTYLE_NOBORDER); start_row(); ref_cells(_("#:"), 'order_number', '',null, '', true); -date_cells(_("from:"), 'OrdersAfterDate', '', null, -$_SESSION["wa_current_user"]->prefs->transaction_days()); +date_cells(_("from:"), 'OrdersAfterDate', '', null, -user_transaction_days()); date_cells(_("to:"), 'OrdersToDate'); locations_list_cells(_("into location:"), 'StockLocation', null, true); @@ -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);