Temporary fixes for php encoding library bugs ending with segfault.
[fa-stable.git] / admin / void_transaction.php
index 13f1e439df8f7b7b2712dd007f61846a1fef6310..3016e88d9bf2643dfffe35eaa487ac10109be939 100644 (file)
@@ -73,7 +73,7 @@ function exist_transaction($type, $type_no)
                        return false;
 
                case ST_SUPPRECEIVE : // it's a GRN
-                       if (exists_grn($type_no))
+                       if (!exists_grn($type_no))
                                return false;
                        break;
 
@@ -250,7 +250,7 @@ function check_valid_entries()
        }
        if (!is_date_in_fiscalyear($_POST['date_']))
        {
-               display_error(_("The entered date is not in fiscal year."));
+               display_error(_("The entered date is out of fiscal year or is closed for further data entry."));
                set_focus('date_');
                return false;
        }