[0000607] Issue with Inventory Adjustment with 0 cost value
[fa-stable.git] / purchasing / includes / db / grn_db.inc
index 01a84e1f9959d2e398ed89cd344458829a5ad494..f418ff3eeb4dc68c38ca16d60f98d2caa5dedf07 100644 (file)
@@ -40,8 +40,8 @@ function update_average_material_cost($supplier, $stock_id, $price, $qty, $date,
        $result = db_query($sql);
        $myrow = db_fetch($result);
        $material_cost = $myrow['material_cost'];
-       if ($price > -0.0001 && $price < 0.0001)
-               return $material_cost;
+       //if ($price > -0.0001 && $price < 0.0001) commented out by Chaitanya
+       //      return $material_cost;
        if ($adj_only)
                $exclude = ST_CUSTDELIVERY;
        else