Replacing the PDF Engine with a slightly modified TCPDF
[fa-stable.git] / sales / manage / credit_status.php
index f4608d088e3c10d2cef45fc934d287af768868ab..6b0ee02d608b233911389da2433b201ff0708edf 100644 (file)
@@ -19,6 +19,7 @@ function can_process()
        if (strlen($_POST['reason_description']) == 0) 
        {
                display_error(_("The credit status description cannot be empty."));
+               set_focus('reason_description');
                return false;
        }       
        
@@ -71,8 +72,8 @@ if ($Mode == 'Delete')
        {
                delete_credit_status($selected_id);
                display_notification(_('Selected credit status has been deleted'));
-               $Mode = 'RESET';
        }
+       $Mode = 'RESET';
 }
 
 if ($Mode == 'RESET')