[0004734] Fixed bug in costing procedure for produced items.
[fa-stable.git] / manufacturing / includes / db / work_order_costing_db.inc
index 7a0bd413790ee03521969bc01d5b2472564d8894..d3c96a5ffc625ecda474c816be4fd0a72a9d2cf6 100644 (file)
@@ -48,8 +48,8 @@ function update_material_cost($stock_id, $qty, $unit_cost, $date)
 {
        global $Refs;
 
-       $product = get_item($stock_id);
-       $avg_cost =  $product['material_cost'];
+       $item = get_item($stock_id);
+       $avg_cost =  $item['material_cost'];
 
        $qoh = get_qoh_on_date($stock_id, null, $date);