Cleanup comments. Small bugfixes. First run.
[fa-stable.git] / admin / void_transaction.php
index 41ff2f77cbb7386503975fb4ae40fe33f5add323..13f1e439df8f7b7b2712dd007f61846a1fef6310 100644 (file)
@@ -104,7 +104,6 @@ function exist_transaction($type, $type_no)
                        return false;
                case ST_COSTUPDATE : // it's a stock cost update
                        return false;
-                       break;
        }
 
        return true;
@@ -241,7 +240,7 @@ function check_valid_entries()
        {
                display_error(_("The selected transaction was closed for edition and cannot be voided."));
                set_focus('trans_no');
-               return;
+               return false;
        }
        if (!is_date($_POST['date_']))
        {