Sales invoice voiding is blocked when sales credit was issued against the invoice.
[fa-stable.git] / admin / print_profiles.php
index fb959dfb61667893fc12ffaae9666d0915dd4b36..bf3d698f7cc0f0c7911dea339e53b7b4f0b71431 100644 (file)
@@ -23,9 +23,9 @@ $selected_id = get_post('profile_id','');
 // Returns array of defined reports
 //
 function get_reports() {
-       global $path_to_root, $go_debug;
+       global $path_to_root, $SysPrefs;
 
-if ($go_debug || !isset($_SESSION['reports'])) {       
+if ($SysPrefs->go_debug || !isset($_SESSION['reports'])) {     
        // to save time, store in session.
                $paths = array (
                        $path_to_root.'/reporting/',
@@ -105,7 +105,7 @@ if ( get_post('submit'))
                update_printer_profile($_POST['profile_id'], $prof);
                if ($selected_id == '') {
                        display_notification_centered(_('New printing profile has been created')); 
-                       clear_form();
+                       clear_form($selected_id);
                } else {
                        display_notification_centered(_('Printing profile has been updated'));
                }
@@ -184,4 +184,3 @@ div_end();
 end_form();
 end_page();
 
-?>