From 1fc101a897e066ea419742cf37c7878dbebe4673 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Wed, 16 Mar 2011 09:14:47 +0100 Subject: [PATCH] Changes in void_stock?_adjustmen?t --- inventory/includes/db/items_adjust_db.inc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/inventory/includes/db/items_adjust_db.inc b/inventory/includes/db/items_adjust_db.inc index f3c8c9d2..1ca7d1ed 100644 --- a/inventory/includes/db/items_adjust_db.inc +++ b/inventory/includes/db/items_adjust_db.inc @@ -52,14 +52,7 @@ function void_stock_adjustment($type_no) { hook_db_prevoid(ST_INVADJUST, $type_no); - //Average the cost while voiding - $adjustment_items = get_stock_adjustment_items($type_no); - while ($adjustment = db_fetch($adjustment_items)) - { - update_average_material_cost(0, $adjustment['stock_id'], - $adjustment['standard_cost'], -$adjustment['qty'], sql2date($adjustment['tran_date'])); - } - void_gl_trans(ST_INVADJUST, $type_no); + void_gl_trans(ST_INVADJUST, $type_no); void_stock_move(ST_INVADJUST, $type_no); } -- 2.30.2