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=ced25a469db48fa4badfcc96e09e414193fe0377;p=fa-stable.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 01a84e1f..f418ff3e 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