[0003964] Fixed bug in voiding GRN.
[fa-stable.git] / admin / void_transaction.php
index f490cb237fe8b195e6073e39e3b927bdd0ab19a1..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;