Attachments were not moved to new transaction after edition for some document types.
[fa-stable.git] / gl / gl_bank.php
index 14a8518d1ecf81b00a2f37ebdbfa4c99f3dd641e..de4bcc730b46a6ef08e1dac1695ea42c3f861b8d 100644 (file)
@@ -25,9 +25,9 @@ include_once($path_to_root . "/gl/includes/gl_ui.inc");
 include_once($path_to_root . "/admin/db/attachments_db.inc");
 
 $js = '';
-if ($use_popup_windows)
+if ($SysPrefs->use_popup_windows)
        $js .= get_js_open_window(800, 500);
-if ($use_date_picker)
+if (user_use_date_picker())
        $js .= get_js_date_picker();
 
 if (isset($_GET['NewPayment'])) {
@@ -424,4 +424,3 @@ end_form();
 
 end_page();
 
-?>