Changed hardcoded trans days in inquiries (30) to be a user preference.
[fa-stable.git] / gl / inquiry / gl_account_inquiry.php
index 9aff2365ac093c3c9d50d8c1d315100e4ad847bc..4a9b7d0b040bed9bd62804dc9d3e41d1ba5e4945 100644 (file)
@@ -68,7 +68,7 @@ function gl_inquiry_controls()
     start_table(TABLESTYLE_NOBORDER);
        start_row();
     gl_all_accounts_list_cells(_("Account:"), 'account', null, false, false, _("All Accounts"));
-       date_cells(_("from:"), 'TransFromDate', '', null, -30);
+       date_cells(_("from:"), 'TransFromDate', '', null, -$_SESSION["wa_current_user"]->prefs->transaction_days());
        date_cells(_("to:"), 'TransToDate');
     end_row();
        end_table();