projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd8bfea
)
[0000607] Issue with Inventory Adjustment with 0 cost value
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 10 Mar 2011 10:58:58 +0000
(11:58 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 10 Mar 2011 10:58:58 +0000
(11:58 +0100)
purchasing/includes/db/grn_db.inc
patch
|
blob
|
history
diff --git
a/purchasing/includes/db/grn_db.inc
b/purchasing/includes/db/grn_db.inc
index 01a84e1f9959d2e398ed89cd344458829a5ad494..f418ff3eeb4dc68c38ca16d60f98d2caa5dedf07 100644
(file)
--- 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