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);
{
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)
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);