Small change in voiding stock move.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 25 Nov 2011 12:48:43 +0000 (13:48 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 25 Nov 2011 12:48:43 +0000 (13:48 +0100)
includes/db/inventory_db.inc

index 5a5dda4b24485f1b58043b445306bad8eef856f4..093ea6f1332c3288b5e16bedff4f915924cb76b9 100644 (file)
@@ -391,7 +391,7 @@ function void_stock_move($type, $type_no)
                {        
                        // The cost has to be adjusted.
                        // Transaction rates are stored either as price or standard_cost depending on types\r
-                       $types = array(ST_SUPPCREDIT);
+                       $types = array(ST_SUPPCREDIT, ST_SUPPRECEIVE);
                        if (in_array($type,$types))
                                $trans_rate = $row["price"];
                        else