Unnecesary direct access to user setting superseded by calls to user_* functions.
[fa-stable.git] / sales / inquiry / sales_orders_view.php
index 0095a418f78e542b1e039385abd454c0f669f6c5..35d71c6444a40b86e1838e1cba7c9482d43f119c 100644 (file)
@@ -210,7 +210,7 @@ ref_cells(_("#:"), 'OrderNumber', '',null, '', true);
 ref_cells(_("Ref"), 'OrderReference', '',null, '', true);
 if ($show_dates)
 {
-       date_cells(_("from:"), 'OrdersAfterDate', '', null, -$_SESSION["wa_current_user"]->prefs->transaction_days());
+       date_cells(_("from:"), 'OrdersAfterDate', '', null, -user_transaction_days());
        date_cells(_("to:"), 'OrdersToDate', '', null, 1);
 }
 locations_list_cells(_("Location:"), 'StockLocation', null, true, true);