From a838b696d94f0a983be7789423b1710c359912d9 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 28 Nov 2021 10:19:26 +0100 Subject: [PATCH] update_material_cost function makes one unnecessary call to get_item. Fixed by @kvvaradha. --- manufacturing/includes/db/work_order_costing_db.inc | 1 - 1 file changed, 1 deletion(-) diff --git a/manufacturing/includes/db/work_order_costing_db.inc b/manufacturing/includes/db/work_order_costing_db.inc index cff4b6e3..91cc1533 100644 --- a/manufacturing/includes/db/work_order_costing_db.inc +++ b/manufacturing/includes/db/work_order_costing_db.inc @@ -81,7 +81,6 @@ function update_material_cost($stock_id, $qty, $unit_cost, $date) { // post $qty_delayed*($avg_cost-$unit_cost) $diff = $qty_delayed*($unit_cost-$avg_cost); - $stock_gl_code = get_item($stock_id); $dec = user_price_dec(); $old_cost = -round2($avg_cost, $dec); -- 2.30.2