Unnecesary direct access to user setting superseded by calls to user_* functions.
[fa-stable.git] / sales / inquiry / customer_allocation_inquiry.php
index 968600bb15e47832818228caa0b60d368d6b49d4..6d01aebcace45ea05be0abd3799b5c83f712b67c 100644 (file)
@@ -41,7 +41,7 @@ start_row();
 
 customer_list_cells(_("Select a customer: "), 'customer_id', $_POST['customer_id'], true);
 
-date_cells(_("from:"), 'TransAfterDate', '', null, -$_SESSION["wa_current_user"]->prefs->transaction_days());
+date_cells(_("from:"), 'TransAfterDate', '', null, -user_transaction_days());
 date_cells(_("to:"), 'TransToDate', '', null, 1);
 
 cust_allocations_list_cells(_("Type:"), 'filterType', null);