Voiding PO GRN's could be dangerous, if deliveries have been done. Eliminating it...
[fa-stable.git] / admin / db / voiding_db.inc
index 1b74929c967be609de6e27bdb7aacf5b953d3d2a..2dd72d379a638cc4adc4c11bc79c43400ec1c991 100644 (file)
@@ -50,10 +50,11 @@ function void_transaction($type, $type_no, $date_, $memo_)
                        void_stock_adjustment($type_no);
                        break;
 
+               case 25 : // it's a GRN
+                       return false;
                case 20 : // it's a suppler invoice
                case 21 : // it's a supplier credit note
                case 22 : // it's a supplier payment
-               case 25 : // it's a GRN
                        if (!exists_supp_trans($type, $type_no))
                                return false;
                        if (!post_void_supp_trans($type, $type_no))