[0003304] Purchase Order Entry: fixed support for editable items description.
[fa-stable.git] / gl / inquiry / gl_account_inquiry.php
index 9ba25a53ce495cc8c3c3f5e62548360d2b9bed17..14147f6cf52da9e2cf0f1e891afc368389a4f32f 100644 (file)
@@ -23,7 +23,7 @@ include_once($path_to_root . "/gl/includes/gl_db.inc");
 
 $js = '';
 set_focus('account');
-if ($use_popup_windows)
+if ($SysPrefs->use_popup_windows)
        $js .= get_js_open_window(800, 500);
 if (user_use_date_picker())
        $js .= get_js_date_picker();
@@ -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, -$_SESSION["wa_current_user"]->prefs->transaction_days());
+       date_cells(_("from:"), 'TransFromDate', '', null, -user_transaction_days());
        date_cells(_("to:"), 'TransToDate');
     end_row();
        end_table();
@@ -238,4 +238,3 @@ div_end();
 
 end_page();
 
-?>