Changed hardcoded trans days in inquiries (30) to be a user preference.
[fa-stable.git] / gl / inquiry / tax_inquiry.php
index 6022fcd7211f67d8579c643566e1c0887f97e453..e1e7c853070f02c3eaa5f779c59f35c591a1364e 100644 (file)
@@ -58,7 +58,7 @@ function tax_inquiry_controls()
     start_table(TABLESTYLE_NOBORDER);
        start_row();
 
-       date_cells(_("from:"), 'TransFromDate', '', null, -30);
+       date_cells(_("from:"), 'TransFromDate', '', null, -$_SESSION["wa_current_user"]->prefs->transaction_days());
        date_cells(_("to:"), 'TransToDate');
        submit_cells('Show',_("Show"),'','', 'default');