X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Finquiry%2Fpo_search.php;h=d660038a3a1dbe4c3b5da1b4d213f879ad6f5d34;hb=9451db1760036985de791ba24c442801e37f37de;hp=f3203f6361126a16d0d5c1da5f87ddb17a42d99f;hpb=ae115f787d84c11c6140137b054261a398b2f077;p=fa-stable.git diff --git a/purchasing/inquiry/po_search.php b/purchasing/inquiry/po_search.php index f3203f63..d660038a 100644 --- a/purchasing/inquiry/po_search.php +++ b/purchasing/inquiry/po_search.php @@ -18,7 +18,7 @@ include($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(); @@ -61,7 +61,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(_("Location:"), 'StockLocation', null, true); @@ -86,8 +86,7 @@ function trans_view($trans) function edit_link($row) { - return pager_link( _("Edit"), - "/purchasing/po_entry_items.php?ModifyOrderNumber=" . $row["order_no"], ICON_EDIT); + return trans_editor_link(ST_PURCHORDER, $row["order_no"]); } function prt_link($row) @@ -128,7 +127,7 @@ $cols = array( array('insert'=>true, 'fun'=>'receive_link') ); -if (get_post('StockLocation') != $all_items) { +if (get_post('StockLocation') != ALL_TEXT) { $cols[_("Location")] = 'skip'; }