Changed hardcoded trans days in inquiries (30) to be a user preference.
[fa-stable.git] / gl / view / accrual_trans.php
index 6d1d360dde84fea009ca178cb12a32a8efe4cc63..9289c737793e663f37331aa6f1fc485355f9490f 100644 (file)
@@ -64,7 +64,7 @@ $th = array_merge($first_cols, $dim_cols, $remaining_cols);
 table_header($th);
 $end = $_GET['date'];
 $account = $_GET['act'];
-$begin = add_days($end, -30);
+$begin = add_days($end, -$_SESSION["wa_current_user"]->prefs->transaction_days());
 
 $result = get_gl_transactions($begin, $end, -1,        $account, 0, 0, null);
 $j = 0;