From: Joe Hunt Date: Thu, 10 Mar 2011 10:58:58 +0000 (+0100) Subject: [0000607] Issue with Inventory Adjustment with 0 cost value X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=ab23d2da19e340140a9c3b2026065257b2b2c82b;p=textcart.git [0000607] Issue with Inventory Adjustment with 0 cost value --- diff --git a/purchasing/includes/db/grn_db.inc b/purchasing/includes/db/grn_db.inc index 01a84e1..f418ff3 100644 --- a/purchasing/includes/db/grn_db.inc +++ b/purchasing/includes/db/grn_db.inc @@ -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