From 36837487e9787b8a24984d234dd0f97ea5cb8bd5 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Fri, 25 Nov 2011 13:48:43 +0100 Subject: [PATCH] Small change in voiding stock move. --- includes/db/inventory_db.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/db/inventory_db.inc b/includes/db/inventory_db.inc index 5a5dda4..093ea6f 100644 --- a/includes/db/inventory_db.inc +++ b/includes/db/inventory_db.inc @@ -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 - $types = array(ST_SUPPCREDIT); + $types = array(ST_SUPPCREDIT, ST_SUPPRECEIVE); if (in_array($type,$types)) $trans_rate = $row["price"]; else -- 2.30.2